Iterable(lang)--Iterator(util)--ListIterator(util) method: 1.void add(E o) 2.boolean hasNext() //正向遍历 3.boolean hasprvious() //反向遍历 4.E next() 5.int nextIndex() 6.E PRevious() 7.int priviousIndex() 8.void remove() 9.void set(E o)
Iterable(lang)-->Iterator(util)-->ListIterator(util)
method: 1.void add(E o)
2.boolean hasNext() //正向遍历
3.boolean hasprvious() //反向遍历
4.E next()
5.int nextIndex()
6.E PRevious()
7.int priviousIndex()
8.void remove()
9.void set(E o) //指定元素替换使用 4或6 返回的元素。使用时,必须调用了4或6,
并且在该方法之前不能出现remove和add方法。