summaryrefslogtreecommitdiff
path: root/output/ex16.java
blob: 71dcedeb1e9e6aff9d3c536b9308095d39ff3f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 = (test).next();
        return 0;
    }

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