public class Test { String str = "good"; char[] ch = {'a','b','c'}; public static void main(String[] args){ Test t = new Test(); t.change(t.str, t.ch); System.out.print(t.str+" and "); System.out.print(t.ch); } public void change(String str,char ch[]){ str="test ok"; ch[0]='g'; } }
慕瓜9220888
慕标5263832
慕莱坞1975833
相关分类