主题:LinkedList的迭代遍历的问题 ,请教
前面是一个构造方法
public Title(String name){
this.name = name;
}
Title title1 = new Title("name");
Title title2 = new Title("name");
Title title3 = new Title("name");
LinkedList list = new LinkedList();
请高手说下 怎么通过迭代遍历?
public Title(String name){
this.name = name;
}
Title title1 = new Title("name");
Title title2 = new Title("name");
Title title3 = new Title("name");
LinkedList list = new LinkedList();
请高手说下 怎么通过迭代遍历?