Java reverse/back reference
<p>I'm trying to pass a class instance into a constructor of another class and vise versa. I would like to do this:</p>

<pre><code>static Map map = new Map(hero);
static Hero hero = new Hero(map);
</code></pre>

<p>I'm running this code inside my Game class. How do I go about correctly implementing the above code? Is there a better way to go about it?</p>

<p><strong>EDIT:</strong></p>

<p><strong>I think what I really want is lazy loading, like if map is null then make it; otherwise, don't make it. How do I do this in Java?</strong></p>
