Java programming with Greenfoot: dealing With errors
This video tutorial explains the different error codes that occur in Greenfoot Java and other programming languages and demonstrates how to find out exactly where the error has occurred. This includes syntax errors (which present code from compiling as something has been typed incorrectly) and runtime errors (also known as logical or semantic errors – errors that occur when the code is running, i.e. the program does not do what it should do). The tutorial explains that an error message includes a stack trace to help you find where the error has occurred.
More resources can be found here