v****p 发帖数: 53 | 1 LinkedList.java was supposed to implement List interface which has 2 methods:
1. listIterator(int index)
2. listIterator()
I checked the source code from Sun, it only has the first method implemented
. How could this happen? |
f*******n 发帖数: 12623 | 2 It's inherited from AbstractList |
p*****2 发帖数: 21240 | 3 感觉java的linkedlist就是个joke,难用的很。 |
x*******6 发帖数: 262 | |
p*****2 发帖数: 21240 | 5
Stack用arraylist就可以了吧?
【在 x*******6 的大作中提到】 : 还好吧,经常用来做stack和queue
|
B***r 发帖数: 79 | 6 ArrayList doesn't provide push and pop methods for stack as LinkedList
【在 p*****2 的大作中提到】 : : Stack用arraylist就可以了吧?
|
p*****2 发帖数: 21240 | 7
不就是add, remove吗?一个意思。
【在 B***r 的大作中提到】 : ArrayList doesn't provide push and pop methods for stack as LinkedList
|