/ ** * @Author 031202 * * Todo to change TYMENT GO to WINDTED TY Comment Go to WINDOW - * Preferences - Java - Code Style - Code Templates * / Class Valhold {public Int i = 10;}
Public class testparameter {public void amethod () {valhold v = new Valhold (); another (v); system.out.println (v.i);}
Public void Another (Valhold V) {v.i = 20; Valhold Vh = New Valhold (); v = vh; system.out.println (v.i);}
Public static void main (string [] argv) {TestParameter o = new testparameter (); .AMethod ();}} answer: 1020