I am assigning double key with an arrayList in a map and trying to retrieve the data from the map but I am getting this error below. How can I get it to work?
Multiple markers at this line - Map.Entry is a raw type. References to generic type Map.Entry should be parameterized - Type mismatch: cannot convert from Object to Map.Entry
Map<Double, ArrayList<Integer>> map = new HashMap<Double, ArrayList<Integer>>();
else {
Map<Double, ArrayList<Integer>> mapResult = db.detectRoute(latD, longD);
Iterator it = mapResult.entrySet().iterator();
while(it.hasNext()){
//The error starts here.
Entry e = it.next();
double distance = entry.getkey();
ArrayList<Integer> value = entry.getValue();
}