java拆装箱——慎用!
Exception in thread "main" java.lang.NullPointerException
at com.gs.test.AppTest.main(AppTest.java:34)
public static void main(String[] args) { Map<String, Integer> map=new HashMap<String, Integer>(); map.put("b",1); int i=map.get("a"); System.err.println(i); }
时间: 2024-11-10 07:33:06