FWQ
java下面的数组定义哪些是正确的
java 数组定义遵循以下规则:基本类型数组:int[] numbers = new int[5];引用类型数组:string[] names = new string[3];多维数组:int[][] matrix = new int[2][3];以下定义错误:省略数组大小:int[] numbers {1, 2, 3};数组类型不匹配:double[] prices = new int[5];数组元素类型不符:string[] names = new string[3] {1, 2,…