摘要: package test01; //数组的遍历public class TestArray02 { public static void main(String[] args) { int[] a = { 1, 2, 3, 4, 5 }; for (int i = 0; i < a.length; 阅读全文
posted @ 2018-08-23 23:48 Monica_维维 阅读(179) 评论(0) 推荐(0) 编辑
摘要: package chapter09; import java.util.ArrayList;import java.util.Iterator;import java.util.List; /* * List遍历三种方法:1.for 2.增强性for 3.迭代器 */public class Tes 阅读全文
posted @ 2018-08-23 17:37 Monica_维维 阅读(433) 评论(0) 推荐(0) 编辑
摘要: package chapter09; import java.util.ArrayList;import java.util.List; /* * List * ArrayList底层是数组 * 特点:查询快,增删慢 * 常用过的三个方法:1.add();2.get();3.remove(); */ 阅读全文
posted @ 2018-08-23 14:15 Monica_维维 阅读(182) 评论(0) 推荐(0) 编辑