Create a class called Word which has a static value WORD_SIZE equal to three, and an instance variable which is a String that represents the word. The constructor for the class should take a single String parameter which represents the word that to be stored. For example,

Word w = new Word("cat:);

Given an input file of words, read the words into an array from the file and display them in a GUI. The GUI should have a GridLayout with one row and two columns. The left column should display the words in the order read from the file, and the right column should display the words in sorted order (using Selection Sort).

As you are reading the words you should check that the value read in is legal (3 letters), and if it is not, print it to the console and do not put it in the array of Words.

The input file

Each line of the input file may contain several words separated by commas. You will need to use a StringTokenizer to separate out the individual words. So, an example of the input file would be:

cat
fat,hat,hello
the,cat,is,black
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.