There is a HashMap:
HashMap aircraftHandling = new HashMap<String, HashMap<Double, Integer>>();
This HashMap contains the following entries:
HashMap<"M", HashMap<1.22, 200>>();
HashMap<"M", HashMap<5.62, 300>>();
HashMap<"L", HashMap<10.11, 900>>();
I need to get entries for the key "M", i.e. HashMap<1.22, 200> and HashMap<5.62, 300>. I do this in the following way:
HashMap lines = (HashMap<Double, Integer>) aircraftHandling.get("M");
The question is how to get Double and Integer, ie (1.22, 200) and (5.62, 300), into two separate variables?
for (int i=0; i<lines.size(); i++)
{
//doubleValue = [i]???
//integerValue = [i]???
}