I am trying to access a specific element in a java list of Greenfoot (http://www.greenfoot.org/).
getObjects(Object.class).get(0).getPosition();
Object is my own class. It has a method named public float getPosition() { ... }
getObjects() returns a java.util.List. Documentation of Greenfoot -> World: http://www.greenfoot.org/files/javadoc/
But the error is: cannot find symbol - method getPosition()