示例#1
0
 public static void main(String[] args) {
   GoITMap map = new GoITMap();
   map.put(new Integer(1), "One");
   map.put(new Integer(1), "One");
   map.put(new Integer(2), "Two");
   map.put(new Integer(11), "Eleven");
   System.out.println("assumed value: " + map.get(new Integer(1)));
   System.out.println(map.get(new Integer(2)));
   System.out.println(map.get(new Integer(1)));
   System.out.println(map.get(new Integer(11)));
   System.out.println(map.size());
 }
示例#2
0
 @Test
 public void testSize() {
   assertEquals("checking size of map", 2, map.size());
 }