Newer
Older
public Methods(int init) { this.c = init; }
public int method1() { return 1; }
public void method2(int n, boolean b) {
assert b;
if(this.c < 2)
this.method1();
koen
committed
}
static int x, y;
public static int staticmethod1() { return 1; }
public static void staticmethod2() { x = 4 ; }
public static void main(String[] args)
koen
committed
{
Methods c1, c2;
c1 = new Methods(1);
c2 = new Methods(0);
c1.method2(1, true);
c2.method2(1, true);
x = c1.c + c2.c;
// staticmethod2();