import java.util.*;
public class IntObjectLink {
public static void main(String[] args) {
Integer tem;
try{
LinkedList lst = new LinkedList();
for(int i = 1; i < 11; i++){
lst.addFirst(new Integer(i));
}
for(int i = 1; i < 11; i++){
tem = (Integer)lst.removeFirst();
System.out.println(tem.intValue());
}
}
catch(Exception e){
System.out.println("有错误");
}
}
}
4月21日,IntObjectLink,每日20行。
最新推荐文章于 2024-02-27 14:07:35 发布