摘要: 1 class ArrayOperateDemo1 2 { 3 /* 4 定义一个功能,为了遍历数组中的元素 5 */ 6 public static void printArray(int[] arr) 7 { 8 for (int x=0;x<arr.length ;x++ ) 9 { 10 / 阅读全文
posted @ 2017-10-24 16:41 BirdieForLove 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 class ArrAyOperateDemo 2 { 3 public static void main(String[] args) 4 { 5 /* 6 数组常见操作 7 1,获取数组中的最大值或者最小值 8 思路: 9 1,无非就是互相比较 10 ... 阅读全文
posted @ 2017-10-24 16:37 BirdieForLove 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: 1 class ArrayDemo2 2 { 3 public static void main(String[] args) 4 { 5 /*int[] arr= new int[3]; 6 System.out.println(arr[3]); 7 //ArrayIndexoutofBoundsExceptio... 阅读全文
posted @ 2017-10-24 16:35 BirdieForLove 阅读(585) 评论(0) 推荐(0) 编辑