View difference between Paste ID: uh6Gy8iS and 7nAawN7e
SHOW: | | - or go back to the newest paste.
1-
/*
1+
2-
 * To change this template, choose Tools | Templates
2+
3-
 * and open the template in the editor.
3+
4-
 */
4+
class Trial {
5-
package cglcgl;
5+
6
    public static void main(String[] args) {
7
        System.out.println("*** start ***");
8
9-
/**
9+
10
11-
 @author cagri.celebi
11+
            HashMap<Integer, HashMap<Integer, String>> mapHolder =
12-
 */
12+
13-
public class Deneme {
13+
14
            HashMap<Integer, String> tmpMap1 = new HashMap<Integer, String>();
15
            tmpMap1.put(1, "Judy");
16
            tmpMap1.put(2, "Caty");
17
18
            HashMap<Integer, String> tmpMap2 = new HashMap<Integer, String>();
19
            tmpMap2.put(1, "John");
20-
            HashMap<Integer, HashMap<Integer, String>> haritaTutucu =
20+
            tmpMap2.put(2, "Charles");
21
            tmpMap2.put(3, "Mike");
22
23
            mapHolder.put(1, tmpMap1);
24-
            tmpMap1.put(1, "ayse");
24+
            mapHolder.put(2, tmpMap2);
25-
            tmpMap1.put(2, "fatma");
25+
26
            System.out.println("2nd of the 2nd : " + mapHolder.get(2).get(2)); // Charles
27
28-
            tmpMap2.put(1, "ahmet");
28+
29-
            tmpMap2.put(2, "mehmet");
29+
30-
            tmpMap2.put(3, "murat");
30+
31
32-
            haritaTutucu.put(1, tmpMap1);
32+
33-
            haritaTutucu.put(2, tmpMap2);
33+
34
}