Wyo Java Ch20Proj1 |
Write a class named Ch20Proj1 that contains the following static methods.
In this assignment, you must use HashSets however the Set reference type is used above so that the same methods could also be used with TreeSets.
None of the methods above may change the parameters passed to them. Write the client program so that set1 and set2 are created as the set of all words in two text files named set1.txt and set2.txt where the words are typed on separate lines. Use Scanner for file input. Be sure to execute code that makes the program easy to grade (i.e. print out the contents of the sets where necessary to show that the algorithms work correctly.) Your program must follow the class Coding Standards. Save all of the files associated with this assignment to a folder named Ch20Proj1 in the appropriate network folder. Submit the printed code stapled to a screen capture of the runtime output as well as copies of set1.txt and set2.txt. You must hand in the following on separate pages stapled in this specified order:
|