JDK各個版本的區別

jdk1.5的新特性: 1. 泛型    ArrayList list=new ArrayList()------>ArrayList<Integer>list=new ArrayList<Integer>(); 2 自動裝箱/拆箱    nt i=list.get(0).parseInt();-------->int i=list.get(0);原始類型與對應的包裝類不用顯式轉換 3 for-e
相關文章
相關標籤/搜索