![]() ![]() Take a look at an example first: package com.explainjava It’s a good practice to use immutable objects as a key, further you’ll understand why. ![]() JavaDocs say: “neither the key nor value can be null”. I marked that because for example HashTable and ConcurrentHashMap. Now 1 is associated with “Key1”, 2 with “Key2” and 3 with “Ke圓”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |