packagecom.zhong.array;//值传递publicclassDemo04{publicstaticvoidmain(String[] args){int a =1;System.out.println(a);//1Demo04.change(a);System.out.println(a);//1}//返回值为空publicstaticvoidchange(int a){
a =10;}}
5
packagecom.zhong.array;//值传递publicclassDemo04{publicstaticvoidmain(String[] args){int a =1;System.out.println(a);//1Demo04.change(a);System.out.println(a);//1}//返回值为空publicstaticvoidchange(int a){
a =10;}}