public class Example{
public static void main(String args[ ]){
String str=new String("World");
char ch[ ]={'H','e','l','l','o'};
change(str,ch);
System.out.print(str+"and"+" ");
for(int i=0; i<ch.length; i++)
System.out.print(ch[i]);
}
public static void change(String str,char ch[]){
str="Changed";
ch[0]='C';
}
}
A、打印输出Changed and Hello
B、打印输出Changed and Hello
C、打印输出World and Cello
D、打印输出World and Hello
C