Collections Framework
http://java.sun.com/j2se/1.5.0/ja/docs/ja/guide/collections/index.html
Queue
Throws exception | Returns special value | |
Insert | add(e) | offer(e) |
---|---|---|
Remove | remove() | poll() |
Examine | element() | peek() |
http://java.sun.com/j2se/1.5.0/ja/docs/ja/guide/collections/index.html
Queue
Throws exception | Returns special value | |
Insert | add(e) | offer(e) |
---|---|---|
Remove | remove() | poll() |
Examine | element() | peek() |