摘要: 二维数组 代码 package com.frey.array; public class Demo04 { public static void main(String[] args) { int[][] array={{1,2},{3,4},{5,6},{7,8}}; //第一种创建二维数组的方式 阅读全文
posted @ 2021-12-10 20:32 梧桐灯下江楚滢 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 使用实例 代码 package com.frey.array; public class Demo03 { public static void main(String[] args) { int[] arrays={1,2,3,4,5}; //打印全部的元素 for (int i=0;i<arra 阅读全文
posted @ 2021-12-10 20:17 梧桐灯下江楚滢 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 三种初始化 课堂截图 代码 package com.frey.array; public class Demo02 { public static void main(String[] args) { //静态初始化:创建+赋值 int[] a={1,2,3,4,5,6,7}; System.out 阅读全文
posted @ 2021-12-10 19:43 梧桐灯下江楚滢 阅读(22) 评论(0) 推荐(0) 编辑