Need help with illegal start of expression
I'm trying to start an assignment, and am trying to create methods, but for some reason it keeps giving me the error, illegal start of expression. Any help is appreciated. The error is the line in red text.
import java.awt.Color;
public class TurtleArt
{
public static void main (String[] args)
{
public void drawSquare(int width)
{
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
}
}
}