List集合须知
List集合须知
一.必会常用方法:
1. 增:add(Object obj);
2. 删:(List中的)remove(int index) / (Connection中的)remove(Object obj);
3. 改:set(int index, Object obj);
4. 查:get(int index);
5. 插:add(int index, Object obj);
6. 长度:size();
7. 遍历:Iterator迭代器 /增强for循环(模板举例为for(Per
转载
2020-09-04 13:21:16 ·
128 阅读 ·
0 评论