Calling a method inside another method in same class
<p>In page 428 (the chapter about Type Information) of his "Thinking In Java, 4th Ed.", Bruce Eckel has the following example:</p>

<pre><code>public class Staff extends ArrayList&lt;Position&gt; {
    public void add(String title, Person person) {
        add(new Position(title, person));
    }
/* rest of code snipped */
</code></pre>

<p>Maybe I'm a bit tired, but I can't see how the call to add() inside the add() method works. I keep thinking that it should have a reference, or be a static method (and I can't find a static add() in ArrayList or List). What am I missing?</p>

<p>I just tested for myself, and found that this works:</p>

<pre><code>// Test2.java
public class Test2 {
    public void testMethod() {
        testMethod2();
    }

    public void testMethod2() {
        System.out.println("Here");
    }

    public static void main(String[] args) {
        Test2 t = new Test2();
        t.testMethod();
    }
}
</code></pre>
