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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started