Use method from another class on ArrayList with foreach loop?
<pre><code>public void verschuif1(){
    for(Object x : puntenLijst){
        x.verschuif2(3, 3);
    }
}
</code></pre>

<p>puntenLijst is an ArrayList of object instances from another class.
Now I tried to do something with a foreach loop that loops through all objects in the ArrayList and uses the method verschuif2() (from an other class) on it.</p>

<p>But it doesn't seem to be working.</p>

<p>Can anybody help me out?</p>

<p>Thanks a lot!</p>
