//List<Integer> list = new ArrayList<Integer>();
List<Integer> list =new LinkedList<Integer>();
for (int i =0; i <50000; i++) {
list.add(11);
}
int resutl =0;
long start = System.currentTimeMillis();
for (int i =0; i < list.size(); i++) {
resutl = list.get(i);
}
System.out.println("普通循环使用了"+ (System.currentTimeMillis() - start)+"毫秒");