I have a nested Map object as this:
Map<String,Map<Integer,Double>> items = getMap();
I have a class named MyClass that its constructor is as this:
public MyClass(String city, int month, double average){}
Now I want to convert items to MyClass list as this:
List<MyClass> myList = items.entrySet().stream()
.map(i-> new MyClass(i.getKey(), ?, ?))
.collect(Collectors.toList());
but I don't know what should I use instead of ? to access nested Integer and Double values from Map object?