JAVA compile error -- I think

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ‘:app:compileDebugJavaWithJavac’.
Compilation failed; see the compiler error output for details.

This error states that the problem was found on line 13 and that a ‘;’ was expected but not found.

Another common syntax error is misspelling the name of a variable or method. For example, if you wrote printline rather than println in the above code, you would see the following upon compiling: cannot resolve symbol
symbol : method printline (java.lang.String)
location: class com.otherwise.jurtle.Console
Console.printline(“Hello world”);
Even though your program may be syntactically correct, the compiler may discover a semantic error (i.e., an error in usage). One example would be if your program tried to use a variable that has never had an initial value set. For example, if you had the following code snippet:

public void runTurtle()
int j;

The compiler would complain: variable j might not have been initialized

For example, in the ASimpleSquare example file there is a for loop. If the keyword for is accidentally mistyped as in:

    fo ( int i = 0; i < 4; i++ )
        forward( 60 );
        right( 90 );

The compiler will generate something like: ‘.class’ expected
fo ( int i = 0; i < 4; i++ )
^ ‘)’ expected
fo ( int i = 0; i < 4; i++ )
^ not a statement
fo ( int i = 0; i < 4; i++ )
^ ‘;’ expected
fo ( int i = 0; i < 4; i++ )
^ unexpected type
required: value
found : class
fo ( int i = 0; i < 4; i++ )
^ cannot resolve symbol
symbol : variable i
location: class ASimpleSquare
fo ( int i = 0; i < 4; i++ )

Ethan Stark

Nice, thanks
I think you are totally right in your choise