【java笔记】java获取数组长度
Java获取数组长度
数组长度 = 数组名.length;
int[] arrayA = new int[]{ 10, 25, 478, 78, 15, 445, 625, 78, 1, 8, 5485, 445, 5 };
int len = arrayA.length; //13
数组长度 = 数组名.length;
int[] arrayA = new int[]{ 10, 25, 478, 78, 15, 445, 625, 78, 1, 8, 5485, 445, 5 };
int len = arrayA.length; //13