91

泛型存取的效率问题记录-To High, Happyness

 6 years ago
source link: http://blog.51cto.com/liusw94/2083191
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
问题一:List存入时未指定泛型,效率影响如何?privatestaticvoidtest1(){intn=1000000;Listlist=newArrayList();List<Integer>list1=newArrayList<Integer>();for(inti=0;i<n;i++){list.add(i);list1.add(i);}Integerval

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK