java variable scope issue
<p>I'm getting confused at how java works with everything being a class.</p>

<p>I make a class <code>foo.java</code> and in the <code>main</code> method of <code>foo.java</code> I make an instance of <code>foo</code> (a class creating itself makes no sense to me but it seems normal in java ?)</p>

<p>Then I make a instance of another class <code>bar</code>, so I now have instances of <code>foo</code> and <code>bar</code> inside the <code>foo</code> class but how do I access the member variables of <code>foo</code> with the functions in bar?</p>

<p><code>foo</code> is the processing code and <code>bar</code> is the ui and needs to see all the data in <code>foo</code> so it can display it. </p>
