-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
33 lines (23 loc) · 716 Bytes
/
Main.java
File metadata and controls
33 lines (23 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.example;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map<Integer, String> muajt = new HashMap<Integer, String>();
muajt.put(1, "Janar");
muajt.put(2, "Shkurt");
muajt.put(3, "Mars");
muajt.put(4, "Prill");
muajt.put(5, "Maj");
muajt.put(6, "Qershor");
muajt.put(7, "Korrik");
muajt.put(8, "Gusht");
muajt.put(9, "Shtator");
muajt.put(10, "Tetor");
muajt.put(11, "Nentor");
muajt.put(12, "Dhjetor");
System.out.println(muajt);
muajt.replace(3, "Shtator");
System.out.println(muajt);
}
}