So i'm having some trouble with an assignment with dr java. i need to make several methods for drawing shapes in turtle such as
public void drawSquare()
{
int width = 30;
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
this.turnRight();
this.forward(width);
}
but when i do this i get:
Error: Syntax error on token "void", @ expected
Error: Syntax error, insert "interface Identifier" to complete InterfaceHeader
Error: Syntax error on token ";", < expected
I'd be so grateful to anyone who can help.
Thanks
Bookmarks