初學者,希望大俠幫忙~~~~~!

zeng2814發表於2005-09-11
/*
*測試傳值引用
*/
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);
}
}



這個程式編譯時怎麼老出錯呀
大哥哥大姐姐幫幫我呀

相關文章