Question: 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

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 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 shoud 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.

Submitting the project.

You should have three files to submit for this project:

Project1.java

WordGUI.java

Word.java

this is the text file

cat rat sat the,cat,is,red my,dog,is,not,blue the quick,brown,fox jumps,over,the,lazy,dogs 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!