LinkedList实现了Deque和list接口

LinkedList学习

Queue接口 抛异常 返回特殊值
add offer(false)
remove poll(null)
element peek(null)

Deque接口:

新增了两个针对first元素的操作方法:push(等于addFirst) 和pop(等于removeFirst)。均为抛异常类型的函数。

List接口

set(int index)和get(int index)。报异常

相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2021-10-15
  • 2021-09-25
  • 2021-06-12
  • 2022-02-17
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2021-12-07
  • 2021-06-11
  • 2022-12-23
  • 2022-02-02
相关资源
相似解决方案