Define a key in the key space with type of String or Number (Integer, Float)
Define a relation between this key and the real value (Any object).
Use put() and get() methods to put or access to elements.
Override hashCode() method of the class of the items.
If key is a custom type, hashCode() method of the class must return as unique result as possible for each instance. Because evenly distributed keys mean high performance. You will learn the performance considerations of using a Map.
Access the source codes, exercises and their solutions at
https://www.udemy.com/java-8-core-tra...
Sur cette page du site, vous pouvez voir la vidéo en ligne 6- Using maps in Java durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java Web Development 22 décembre 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5,657 fois et il a aimé 38 téléspectateurs. Bon visionnage!