-2

I want to access the Records I have created in the HashMap.
Due to some requirements, I am unable to create a new data structure for holding my data.

private HashMap<String, ArrayList<Record>> customerInfoTable = new 
HashMap<String, ArrayList<Record>>();

1 Answers1

2
  1. getKeyList() get key list, then for each get value
  2. Iterator> it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = it.next();}
kui.z
  • 74
  • 2