How to use an object of a class in a method of the same class?
<p>My problem is the following :</p>

<p>I have 2 classes : <code>MainActivity</code> and <code>Compartment</code>.</p>

<p><code>MainActivity</code> creates an array <code>myComp[][]</code> of <code>Compartment</code>.
<code>Compartment</code> has a static variable called <code>PpN2</code>, and a public method that calculates <code>PpN2</code>.</p>

<p>This method has to calculate <code>myComp[x][y]</code>.<code>PpN2</code> which is a function of <code>myComp[x-1][y].PpN2</code>.</p>

<p>Question : how can I access <code>myComp[x-1][y].PpN2</code> in the method that calculates <code>myComp[x][y].PpN2</code> ?</p>
