public void verschuif1(){
for(Object x : puntenLijst){
x.verschuif2(3, 3);
}
}
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.
But it doesn't seem to be working.
Can anybody help me out?
Thanks a lot!