2024年3月28日
摘要: 数组 1.数组的创建方式 //法一 int[] arr1 = new int[]{1,2,3,4,5}; System.out.println(arr1.length + " " + arr1[2]); //5 3 //Arrays.toString(Object[]) 将数组的元素生成字符串,数组 阅读全文
posted @ 2024-03-28 10:10 无名之辈的ggb 阅读(1) 评论(0) 推荐(0) 编辑