ListIterator litr = PuntenLijst.listIterator();
while(litr.hasNext()){
Object Punt = litr.next();
Punt.print();
}
PuntenLijst is an ArrayList that contains object instances from another Class.
Now I have made a method print() that prints out something from that object (of the other class).
With this loop I try to loop through the ArrayList, and then use the print() method from the other class, but it doesn't not seem to be working.
Can anybody help me out?