What should I write above "System.out.println(x);" If I want it to -3 from X
also how did I change it so it will save the new number as x?
Here is my code:
public void act()
{
GreenfootImage textImage = new GreenfootImage ( "Return Ticket" ,40, Color.WHITE, Color.BLUE);
setImage(textImage);
if (Greenfoot.mouseClicked(this))
{
x=30;
while (x<=30)
{
System.out.println(x);
}
}


