CodeSnippet:
public class foobar { public static void main (String[] args ) { footwo bla = new footwo(); bla.x = 1; bla.giveittome(5); } } class footwo { public int x; public int giveittome(int x){ System. out. println("This is this:"+this. x); System. out. println("And this is it without:"+x ); return x; } } /****************************************** * Result is: * This is this:1 * And this is it without:5 ******************************************/
|