I have an assignment asking me to create a hashtable then input all the string from a text file into the hashtable. And finally, print out all the element from hashtable.
to print out all the elements, I created the codes below:
Enumeration e = t.elements();
Besides, I import:
However, it compiles error. The machine complaints it cannot find the elements() method.
I don't know why. Can somebody please help me?