. 问题以下输出是什么 ?class ChangeIt{ static void doIt( int[] z ) { int[] A = z; A[0] = 99; }}class TestIt{ public static void main( String[] args ) { int[] myArray = {1, 2, 3, 4, 5}; ChangeIt.doIt(myArray); for (int i = 0; i < myArray.length; i++) { System.out.print(myArray[i] + " "); } }}
(A)1 2 3 4 5
(B)99 2 3 4 5
(C)0 2 3 4 5
(D)99 99 99 99 99
参考答案
继续答题:下一题