Data such as:
20189228={{cc=GDDD, sn=20189228, pp=9 w,}}
CodePudding user response:
public class TestReg {
Public static void main (String [] args) {
Mapmap=new HashMap (a);
For (String s: map. The keySet ()) {
MapLittleMap=map. Get (s);
For (String littleStr: littleMap keySet ()) {
System. The out. Println (littleMap. Get (littleStr));
}
}
}
}
CodePudding user response:
Directly using the MAP of the get methodFor (String key: map. KeySet ()) {
The map. The get (key)
}
Just here to get the inner layer of map the same way again
CodePudding user response:
Two layers of the for loop problem solvingFor (String key: map1 keySet ())
{
The Map map2=map1. Get (key);
For (String key2: map2 keySet ()) {
}
}
CodePudding user response:
Thank you, but if the data "20189228={{cc=GDDD, sn=20189228, pp=9 w,}}" exists in the Obejct first, first Object to map transformation even? How to turnCodePudding user response: