0

I have a hashtable declared as :

Hashtable<Integer, ArrayList<String>> writeData = new Hashtable<>();

I want to access the contents of writeData so as to print them one by one. I don't know what the keys are. So printing them using the keys is not a good idea. Is there a better way to implement Hashtables?

shmosel
  • 49,289
  • 6
  • 73
  • 138
Akshata Dabade
  • 477
  • 5
  • 10

0 Answers0