How can I print a HashMap that containts of String and List of Objects?
HashMap<String, List<Object>> Map = new HashMap<String, List<Object>>();
Each object has a name and a key value so I need to get something like:
StringFirst = [ firstObject 15, second object 31, thirdobject 16]
StringSecond = [ fourthObject 15, fifthObject 31, sixthObject 16]
public static class Graph {
public class Edge extends Graph {
String edgeName;
int time;
Edge(String edgeName, int time){
this.edgeName = edgeName;
this.time = time;
}
public void Out(){
System.out.println(this.edgeName);
System.out.println(this.time);
}
}
Mapis an interface, you might be having issues with that as well.