['Agoodandabc', 'Bgoodandgbc', 'Ctestokandgbc', 'Dtestokandabc']
继续教育-指出下列程序运行的结果()publicclassExample{Stringstr=newString("good");char[]ch={'a','b','c'};publicstaticvoidmain(String[]args){Exampleex=newExample();ex.change(ex.str,ex.ch);System.out.print(ex.str+"and");System.out.print(ex.ch);}publicvoidchange(Stringstr,charch[]){str="testok";ch[0]='g';}}
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处: