("The size of the hash map after clearing: " + animals. clearing/deleting a whole hash map using clear() ("The size of the hash map before clearing: " + animals.size()) ("The name of 'Lion' is: " + animals.get("Lion") gives back the value to the specified key, which means it will return back "Sim" putting a key-value pairs within a HashMap
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |