活跃农民
- 积分
- 364
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2014-8-29
- 最后登录
- 1970-1-1
|
Here is a list after construction: [ ]
isEmpty() should be true. It is: true
length() should be 0. It is: 0
Here is a list after insertFront(3) to an empty list: [ 3 ]
Here is a list after insertEnd(5) on an empty list: [ 5 ]
Here is a list after insertFront 3, 2, 1: [ 1 2 3 ]
isEmpty() should be false. It is: false
length() should be 3. It is: 3
Here is the same list after insertEnd(4): [ 1 2 3 4 ]
Here is a list after insertEnd 6, 7: [ 6 7 ]
isEmpty() should be false. It is: false
length() should be 2. It is: 2
Here is the same list after insertFront(5): [ 5 6 7 ]
original line is: [ 6 9 12 ]
new line is: [ 3 6 9 12 15 ] |
|