summaryrefslogtreecommitdiff
path: root/output/ex52.java
blob: 6febcd59b22bf1ace41747b852f5e2dbe1530a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class ex52{
    public static void main(String[] a){
        System.out.println(new Test().start());
    }
}

class Test {

    Test test;
    boolean b;

    public int start(){
        int val;
        test = new Test();
        b = true;
        b = test.next();
        if (!b)
            val = 1;
        else
            val = 3;
        return val;
    }

    public boolean next(){
        return ((true && (7<8)) && b);
    }

}