iterator开始位置在第一个位置之前,经过next()会依次后移(这玩意不指向元素啊 加塞的)
ListIterator.add() :加入元素
新加元素的位置在下一个元素之前,很多说者加在迭代器的位置(这个表达有么有很含糊?)
红牛高能量===》(当当当) ===>这个是加在相当于迭代器之前的位置 即:用next()是访问不到的 调用previous()愉快的访问到了
说明它是这样的:
ListIterator (Java Platform SE 8 )
Inserts the specified element into the list (optional operation). The element is inserted immediately before the element that would be returned byvoid add(E e)