Create a program WordCount1Main.java doing the following:
For each word in the le word.txt
{ Create an object of the class Word
{ Add the object to a set of the type java.util.HashSet
{ Add the object to a set of the type java.util.TreeSet
Note:
The size of the sets should correspond to the number of words in the les. (Our tests gave 350 words for the le HistoryOfProgramming)
An iteration over the words in the TreeSet should give the words in alphabetical order.