摘要: public class Demo11_Array {public static void main(String[] args) { /** * 需求:公司年销售额求和 * 某公司按季度和月份统计的数据如下:单位(万元) * 第一季度:22,33,11 * 第二季度:77,66,99 * 第三季度 阅读全文
posted @ 2020-11-24 22:01 一块 阅读(222) 评论(0) 推荐(0) 编辑
摘要: public class Demo11_Array {public static void main(String[] args) { int[][] arr = {{1,2},{7,5},{1,5,8,7}}; for(int i = 0; i<arr.length;i++) { System.o 阅读全文
posted @ 2020-11-24 21:54 一块 阅读(154) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { /* * 这是一个二维数组 * 这个二维数组中有3个一维数组 * 每个一维数组中有2个元素 */ int[][] arr = new int[3][2]; System.out.println(arr);//二维数组 阅读全文
posted @ 2020-11-24 21:45 一块 阅读(88) 评论(0) 推荐(0) 编辑