摘要:
1.二维数组:数组的数组 int [][]a= public static void main(String[] args) { int[][] array={{1,2},{3,4},{5,6}}; printarray(array[0]);//提取一个数组,需要用到下面入参方法 System.ou 阅读全文
posted @ 2020-08-05 20:23
兔兔1234
阅读(100)
评论(0)
推荐(0)
摘要:
1.数组基本使用(for循环) (1)展开数组中各个元素 1 int [] a ={1,2,3,4,5}; 2 for (int i = 1; i <= a.length; i++) { 3 System.out.println(i); } (2)对数组中所有元素求和 int[] a = {1, 2 阅读全文
posted @ 2020-08-05 19:44
兔兔1234
阅读(225)
评论(0)
推荐(0)

浙公网安备 33010602011771号