日期:2014-05-20 浏览次数:20643 次
long a_long=0L; Long a_Long=0L; A a_Class=new Main.A(0); test_long(a_long); testClass(a_Class); testLong(a_Long);
private static void testLong(Long a){ a=111111111111L; } private static void test_long(long a){ a=111111111111L; } private static void testClass(A a){ a.setA(111111111L); }
public class A{ private Long a; public void setA(Long a) { this.a = a; } public Long getA() { return a; } public A(long a){ a=Long.valueOf(a); } }