以下初始化 Java 数组的代码哪一个是正确的。
(A)int [] myArray = {"1", "2", "3"};
(B)int [] myArray = (5, 4, 3);
(C)int myArray [] [] = {1,2,3,4};
(D)int myArray [] = {1, 3, 5};
参考答案
继续答题:下一题
(A)int [] myArray = {"1", "2", "3"};
(B)int [] myArray = (5, 4, 3);
(C)int myArray [] [] = {1,2,3,4};
(D)int myArray [] = {1, 3, 5};