Hello im just in the beginning stages of learning greenfoot and keep getting a "reached end of file while parsing" error I've looked over the code several times and cant differentiate the difference between what I've typed and the tutorial heres what I wrote:
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class Crab extends Actor
{
/**
* Act - do whatever the Crab wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
move(4);
if (Greenfoot.isKeyDown("left"))
{
turn(-3);
}
if (Greenfoot.isKeyDown("right"))
{
turn(3);
}
}

