对java链表LinkedList部分自带功能进行了理解与实验
1 | import java.util.LinkedList; |
运行结果
1 | [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
运行结果
1 | 1 |
运行结果
1 | [2, 3, 4, 5, 6, 7, 8, 9] |
运行结果
1 | true |
运行结果
1 | 2.5 |
运行结果
1 | [1, 2, 100, 4, 5, 6, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 7, 8, 9, 10] |
运行结果
1 | false |
运行结果
1 | 1 |
运行结果
1 | 10 |
运行结果
1 | [1, 2, 100, 4, 5, 6, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 7, 8, 9, 11, 12] |