Skip to content

Instantly share code, notes, and snippets.

@simlegate
Created October 20, 2014 08:01

Revisions

  1. simlegate created this gist Oct 20, 2014.
    15 changes: 15 additions & 0 deletions ref.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    class A{
    public B b;

    }
    class B{
    public A a;
    }
    public class Main{
    public static void main(String[] args){
    A a = new A();
    B b = new B();
    a.b=b;
    b.a=a;
    }
    }