// This sample contains a simple class that is allocated with new, and // a simple method call with a single parameter. class JavaSimple { public int a=0; public int b=0; public int meth1(int z) { z=z+1; return a*b; } public static void main (String args[]) { int x; int y; x= 5; y=x; JavaSimple js; js = new JavaSimple(); js.a=7; js.b=9; x = js.meth1(6); } }