Java Map

Опубликовано: 13 Ноябрь 2024
на канале: Jakob Jenkov
30,934
567

The Java Map interface represents a collection that contains key + value pairs. This Java Map tutorial explains the the basics of using a Map in Java, as well as the most common Java Map methods.

Chapters
0:00 Java Map Introduction
1:46 Java Map Interface Implementations
2:55 Java Map Generic Types
5:10 Java Map Insert Key + Value Pair
6:30 Java Map Null Key and Null Value
7:20 Java Map Insert all Key + Value Pairs From One Map Into Another Map
8:16 Java Map Size
8:51 Java Map Check if Map is Empty
9:39 Java Map Check if Map Contains Key
10:24 Java Map Check if Map Contains Value
11:05 Java Map Remove Key + Value Pair
12:10 Java Map Remove All Entries
12:32 Java Map Replace Value for Key
13:19 Java Map Iterate Keys Using Iterator
14:46 Java Map Iterate Keys Using for-each Loop
15:43 Java Map Iterate Entries Using Java Streams API
16:55 Java Map Difference Between HashMap and TreeMap
19:00 Java Map More Resources


Textual version of this Java Map tutorial:
http://tutorials.jenkov.com/java-coll...

Java List tutorial video:
   • Java List Tutorial  

Java Set tutorial video:
   • Java Set  

Java Collections tutorial - textual version
http://tutorials.jenkov.com/java-coll...

Java Streams API video:
   • Java Streams API #1 - The Basics  

Java Lambda Expressions videos:
   • Java Lambda Expressions