packagecom.zhang.parameter;//值传递publicclassMethodDemo1{publicstaticvoidmain(String[] args){int a =10;System.out.println(a);System.out.println("~~~~~~~~~~~~~~~");change(a);//无论你传入的是什么 最后输出的都是330System.out.println(a);}publicstaticintchange(int num){System.out.println(num);
num =330;System.out.println(num);return num;}}