TheBigFatJ is not correct and fadetoone is wrong, Java is the bestest.
You need to write public methods to get the value for 'x' and 'y' from that object.
When you have an object 'spaceship' and you use the '.' to get a variable it needs to be static OR since this variable inherently is dynamic, as the ship is moving, you need a public method called getX() and getY() that will return the current value of x and y.
Hope that helps.







