初学者,希望大侠帮忙~~~~~!

05-09-11 zeng2814
/*

*测试传值引用

*/

public class ValueReference

{

int = 10;

public static void main(String[]args)

{

ValueRference aValue = new ValueReference();

aValue.print();

}

public void print()

{

int b = a;

System.out.println("before changed value a = " + a + " , b = " +a);

a=30;

System.out println("after chang value a = " + a + " , b = " + b);

}

}

这个程序编译时怎么老出错呀

大哥哥大姐姐帮帮我呀

猜你喜欢