摘要: 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 此... 阅读全文
posted @ 2014-02-10 09:12 cnJun 阅读(535) 评论(0) 推荐(0) 编辑