由String诱发的对按值和按址传递的学习
public class Example {
String str =new String("good");
char[] ch={'a','b','c'};
public static void main(String[] args){
Example ex=new Example();
ex.change(ex.str,ex.ch);
System.out.print(ex.str
原创
2015-10-29 00:44:27 ·
480 阅读 ·
0 评论