您的位置:首页 > 编程语言 > Java开发

JAVA Linkedlist易混淆的方法

2016-03-17 12:32 459 查看
Returning null + removing operations:
poll()
,
pollFirst()
.

Returning null + not removing operations:
peek()
,
peekFirst()
.

Throwing exception + removing operations:
pop()
,
remove()
,
removeFirst()
.

Throwing exception + not removing operations:
element()
,
getFirst()
.

参考http://stackoverflow.com/questions/14851367/java-linkedlist-differences-between-retrieve-operations
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: