Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

Describe a persuasive message.

Answered: 1 week ago

Question

13-6 How will MIS help my career?

Answered: 1 week ago