Loading...

摘要: 看完这几个方法的源码,大概我们知道了,LinkedList不仅实现了队列先进先出 (使用 add 和 remove )也实现了栈的 先进后出 (使用pop和push) remove 移除头部元素 Retrieves and removes the head (first element) of th 阅读全文
posted @ 2020-11-07 23:13 梦想家haima 阅读(159) 评论(0) 推荐(0) 编辑