摘要: 1、数组初始化三种方式 int[] array1 = new int[2] { 1, 2 };//方括号中的数组决定数组长度 int[] array2 = new int[] { 1, 2 };//大括号中的元素个数直接决定数组长度 int[] array3 = { 1, 2 }; //开发中使用比 阅读全文
posted @ 2020-08-01 10:27 清和时光 阅读(157) 评论(0) 推荐(0) 编辑