package collection;

import data.User;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * Created by joybar on 2017/5/24.
 */
public class MapTest {


    Map<User, User> map = new HashMap<>();

    public static void main(String[] args) {
        System.out.println("Hello World!");
        MapTest test = new MapTest();
        test.initMap();



    }


    private void initMap() {
        User user1 = new User("Tom", 11);
        User user2 = new User("Jim", 11);
        map.put(user1, user1);
        map.put(user2, user2);

        User user3 = new User("Jim", 11);

        System.out.println(map.get(user3).toString());


    }

}

@@ -327,24 +327,26 @@
 g%5B%5D args) %7B%0A
+%0A%0A
         Syst
@@ -478,16 +478,201 @@
 tMap() %7B
+%0A%0A        long time1 = System.currentTimeMillis();%0A%0A        try %7B%0A            Thread.sleep(1*1000);%0A        %7D catch (InterruptedException e) %7B%0A            e.printStackTrace();%0A        %7D
 %0A       
@@ -852,32 +852,34 @@
 m%22, 11);%0A%0A      
+//
   System.out.pri
@@ -912,16 +912,106 @@
 ng());%0A%0A
+        long time2 = System.currentTimeMillis();%0A%0A        System.out.println(time2-time1);
 %0A    %7D%0A%0A

Add test currentTimeMillis