i have this hashmap with string and arraylis:
Map<String, ArrayList<String>> devNameType = new HashMap<String, ArrayList<String>>();
public void kimenetPV(String name){
//létrehozom a nevet
String devName = name;
//létrehozom a kimeneteket tartalmazó arraylistet
ArrayList<String> outputs = new ArrayList<String>();
// 2. hozzáadaom az elemeket
outputs.add("EM A");
outputs.add("EM B");
outputs.add("AOUT1");
outputs.add("AOUT2");
devNameType.put(devName, outputs);
Iterator iter = devNameType.entrySet().iterator();
//kilistázom az elemeket
while (iter.hasNext()) {
Map.Entry mEntry = (Map.Entry) iter.next();
System.out.println(mEntry.getKey() + " : " + mEntry.getValue());
}
}
how can i print all the values? Sorry for the begginer question i'm using the hashmaps for first time.