求一个listIterator()方法的案例 用LinkedList来做,请大神们讲细点

public class Linkedlist {
public static void main(String[]args){
LinkedList link=new LinkedList();
Shop1 one=new Shop1(001,"苹果",3.2);
Shop1 two=new Shop1(002,"火龙果",3.88);
Shop1 three=new Shop1(003,"草莓",1.2);
Shop1 three1=new Shop1(003,"草莓",1.2);
Shop1 four=new Shop1(003,"小草",1.4);

首先建议初始化这样
LinkedList<Shop> link = new LinkedList();

//下面是简单操作
link.add(one);
link.add(two);
link.add(three);
link.add(three1);
link.add(four);

Iterator iterator = link.listIterator();
while(iterator.hasNext()){
Shop temp = iterator.next();//得到一个节点
System.out.println(temp);
iterator.remove();//移除当前节点

}
 //上面的代码是临时写的,也许有误,其实理解linkedList是链式节点,增删非常方便,而且在遍历的时候删除不会抛并发修改异常。