java - How to iterate a map from another map? -
i have map key integer , value map. want know how iterate through second map.
private map<integer,map<integer,integer>> transition = new hashmap<integer, map<integer, integer>>();
private map<integer,map<integer,integer>> transition = new hashmap<integer, map<integer, integer>>(); (integer outerkey : transition.keyset()) { map<integer, integer> inner = transition.get(outerkey); (integer innerkey : inner.keyset()) { integer value = inner.get(innerkey); } }
Comments
Post a Comment