Hello,
Here is my map
Code:
Map <String, Map <String,Integer>> fl2 = new HashMap <String, Map <String,Integer>>();
I would like for example after finding the first branch, to enumerate all the items related to this sector as a String. I've wanted to do some work by retrieving the size of the map, but after it no longer works with get. Here is my code
Code:
else if (fl2.containsKey (dp) & &! fl2.get (dp). containsKey (ar))
(
/ / one of them to start
this.tf_answer.setText ( "this flight is not direct");
int msz = fl2.get (dp). size ();
for (int i = 0; i <msz; i + +)
(
System.out.println ( "fl2.get (dp). Get (i). ToS:" + fl2.get (dp). get (i). toString ());
}
But it does not work, I can 't find the method. Basically i want to find the nth element of the Map. Any help in this.
Bookmarks