public class ObParm {
public static void main(String argv[]) {
ObParm 0 = new ObParm();
0.amethod();
}
public void amethod() {
int 9 = 99;
ValHold v = new ValHold ();
v.i = 30;
another(v,i);
System.out.printLn(v.i);
} //End of amethod
public void another(ValHold v, int i) {
i=0;
v.i = 20;
ValHold vh = new ValHold();
v = vh;
System.out.printLn(v.i+""+i);
}//End of another
}
|
|