cannot find symbol- method move ();
I'm trying to do the Crab scenario but Greenfoot doesn't seem to recognize any commands like
turn()
or
move()
this happens when i hit the compile button
Yes, i checked if the lines were indented correctly.


1 2 3 4 | public void move() { ...... } |
1 2 3 | if ( true ) { move(); } |
1 | if ( true ) { move(); } |
1 2 3 4 5 6 | public void act() { if (Greenfoot.isKeyDown( "left" )) { turn(- 7 ); } if (Greenfoot.isKeyDown( "right" )) { turn( 7 ); } move(); } |
1 2 3 4 5 | public void act() { if (Greenfoot.isKeyDown( "left" )) { turn(- 7 ); move(); } if (Greenfoot.isKeyDown( "right" )) { turn( 7 ); move(); } } |