I wrote this test,
我写了这个测试,
public class test {
public static String[] foo(String[] myArray, int index) {
myArray[index] = "world";
return myArray;
}
public static void main(String[] args) {
String[] fooArray = new String[10];
for (int i = 0; i < 10; i ++) {
fooArray[i] = "hello";
}
foo(fooArray, 9);
for (int i = 0; i < 10; i ++) {
System.out.println(fooArray[i]);
}
}
}
public class t