@ -21,4 +21,9 @@ public class Apple
position.setLocation(x, y);
}
public void setPosition(Point newPosition)
{
position.setLocation(newPosition);