本帖最后由 821728010 于 2013-5-29 17:34 编辑
import java.util.*;
public class LinkedListDemo15 {
public static void main(String[] args)
{
LinkedList link = new LinkedList();
link.add("abc");
link.add("dff");
link.add("sdg");
link.add("rgh");
ListIterator it = link.listIterator();
while (it.hasPrevious())
{
System.out.println(it.previous());
}
System.out.println("jieshu");
}
}
大侠们怎么没有输出元素?哪里错了? |