keys = m.keySet(); //Returns the keys from Map
which returns a set which contains all the keys
val = m.values(); //Returns the values from Map
It returns a list which has all the values in a map.
which returns a set which contains all the keys
val = m.values(); //Returns the values from Map
It returns a list which has all the values in a map.
No comments:
Post a Comment