class ExampleStaticMethod {
    public static void main(String[] arg) {
        System.out.print("Foo.fooM(0): ");  Foo.fooM(0);
        System.out.print("Bar.fooM(1): ");  Bar.fooM(1);
        System.out.print("Bar.barM(2): ");  Bar.barM(2);
    }
}
class Foo {
    static void fooM (int n) {
        System.out.print("fooM0("+(n+10)+"): ");  fooM0(n + 10);
        System.out.println();
    }
    static void fooM0(int n) {
        System.out.print(n + 100);
    }
}
class Bar extends Foo {
    static void barM (int n) {
        System.out.print("fooM0("+(n+20)+"): ");    fooM0(n + 20);
        System.out.print(", barM0("+(n+30)+"): ");  barM0(n + 30);
    }
    static void barM0(int n) {
        System.out.println(n + 200);
    }
}

