© 1999-2048 dssz.net 粤ICP备11031372号
[其它] Java传值和通过引用传递
说明:第一次使用int实验: public class TTEST { private static List mList = new LinkedList(); public static void main(String[] args) { int a = 0; changeA(a); System.out.println("a = "+a); } public static void changeA(int a){ a = 1; } } 输出:a = 0 这<weixin_38661939> 上传 | 大小:29kb