My teacher taught us how to import colors into Greenfoot using "import java.awt.Color;" but whenever I try to import it, it says illegal start of expression. Is there something I am doing wrong or am I just missing something.
It probably has something to deal with where you are inserting the import line into your code. Usually, import lines are at the top of the class with no indentation and outside of any and all brackets. If you cannot resolve the issue, post the code you are trying. Use the 'code' link below the reply box to insert code into your post. Also, ensure the line before where you are placing it is ended properly.