summaryrefslogtreecommitdiff
path: root/output/ex16.java
blob: c8d21f78eab0caa03fa19bff5a54c74d6efc2c20 (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
class ex16 {
    public static void main(String[] a){
        System.out.println(new Test().start());
    }
}

class Test {

    Test test;
    int[] i;

    public int start() {
        i = new int[10];
        test = new Test();
        System.out.println(2);
        test = (test).next();
        return 0;
    }

    public Test next() {
        System.out.println(1);
        return test;
    }
}