summaryrefslogtreecommitdiff
path: root/base/ex43.java
blob: 80657d9e8c9ec5077591e2c2f8a2a7485a4d305f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class ex43 {
    public static void main(String[] z) {
        A a ;
        a = new A() ;
        System.out.println(a.foo()) ;
    }
}

class A {

    public int foo() {
        int v ;
        v = 1 ;
        if (5 < v) {
            System.out.println(1) ;
        } else {
            System.out.println(0) ;
        }
        return v ;
    }

}