forked from joharbatta/DataStructure-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapimp.java
More file actions
17 lines (14 loc) · 384 Bytes
/
mapimp.java
File metadata and controls
17 lines (14 loc) · 384 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.util.*;
import java.util.HashMap;
public class mapimp
{
public static void main(String[] args) {
HashMap<Integer,String> map=new HashMap<>();
map.put(0,"jatt");
map.put(1,"jatti");
map.put(2,"ustaad");
map.put(3,"sidhu");
System.out.println(map.get(0));
System.out.println(map.containsKey(4));
}
}