recursive_field.mj 215 Bytes
Newer Older
uwgwb's avatar
uwgwb committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
class A {
    public boolean b;
    public int x;
    public A a;


    public static void main(String[] args) {
        A a = new A();
        a.x = 7;
        a.a = a;
        System.out.println(a.a.a.x);
    }

}