摘要:
public class test { static int a; public static void main(String[] args) { a =10; parameter(10);//或parameter(a);System.out.println("3:"+a); } private static void parameter(int a){System.out.println("1:"+a); a = 20;System.out.println("2:"+a); }}运行结果:1:102:203:10 此... 阅读全文