Menu

[Solved]Intro Java Description Project Going Rework Program Someone Else Wrote Using New Way Stori Q37179665

Intro to Java

Description

In this project you are going to rework a program someone elsewrote using a new way of storing and organizing data. You will takea program that used arrays and implement it using ArrayListobjects. In general, ArrayList objects are easier to use thanarrays. For example, both perfect size and oversize arrays fitnicely into ArrayList objects. Commercial software engineers workwith other people’s code all the time, so it is a good experiencein general to have—especially if you’re thinking of a computerscience major.

I recommend changing over one method at a time, then testing andmaking sure that it’s still working. You may need to comment outthe rest of the code to avoid syntax errors. When you comment outbig chunks of code, use /* to start the comments and */ to endthem.

Modifying Method Signatures

Since you’ll use an ArrayList to replace both a perfect sizearray and an oversize array, you’ll need to change every methodsignature somewhat. I’ve put the method signatures from my code inthe document below. These will need to be modified to use anArrayList. You may want to determine the signatures before youstart modifying code. Remember that one of these methods will beunnecessary after converting to ArrayList.

One method should read the global dictionary into a perfectsized array.

Original signature: public static String[] readDictionary(StringfileName)

Your modified signature:

One method should read the personal dictionary into an oversizedarray.

Original signature: public static intreadDictionaryFixedSize(String[] array, String fileName)

Your modified signature:

One method should write the personal dictionary (stored in anoversized array) out to a file.

Original signature: public static voidwritePersonalDictionary(String[] personalDictionary, int size,String fileName)

Your modified signature:

One method should take the two dictionaries and perform spellchecking. One of these dictionaries is perfect size and the otheris oversize so think through the signature carefully. This methodwill have to update the array that contains the oversizedictionary.

Original signature: public static int processInput(String[]global, String[] personal, int personalSize)

Your modified signature:

There will also be a main program that will call the methodsabove.

Expert Answer


Answer to Intro to Java Description In this project you are going to rework a program someone else wrote using a new way of storin… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *