首页 > 代码库 > HaspMap的新奇用法

HaspMap的新奇用法

1 HashMap<String, String> map = new HashMap<String,String>(){
2     private static final long serialVersionUID = 1L;
3     {put("key1","value1");}
4     {put("key2","value2");}
5 };

 

HaspMap的新奇用法