獲得第一個元素,並且不移除
getFirst()//如果list爲空返回NoSuchElement異常
element()//如果list爲空返回NoSuchElement異常
peek()//列表爲空返回null
移除第一個元素
remove()//如果list爲空返回NoSuchElement異常
removeFrist()//如果list爲空返回NoSuchElement異常
pool()//列表爲空返回null
添加在位置最前的元素
addFirst()
offer()
添加在位置最後的元素
add()
addLast()
刪除位置最後的元素
removeLast()//如果list爲空返回NoSuchElement異常