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
  • 45,768
  • 6
  • 62
  • 130
Akshata Dabade
  • 327
  • 4
  • 8

0 Answers0