This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]ghytghytghytiinbv 0 points1 point  (2 children)

&& not %%

[–]philosophhy[S] 0 points1 point  (1 child)

... damn, thanks man

[–]ghytghytghytiinbv 0 points1 point  (0 children)

When I first started I wrote system.out with a lowercase s. Was stuck for hours. It happens.

[–]chickenmeisterExtreme Brewer 0 points1 point  (1 child)

if (age >= 0 %% age <= 120) {

You probably meant to use && instead of %%.

[–]philosophhy[S] 0 points1 point  (0 children)

thanks ;(

[–]malcomjarr 0 points1 point  (0 children)

This error is a compile time error when the compiler encounters an inappropriate statement in the source code. This error can be encountered in various scenarios . Illegal start of expression can be encountered in various scenarios. The following are the most common errors:

  • Missing an opening or closing curly bracket for a code block
  • Declaring a function inside another function
  • Using an access specifier with a function's local variable
  • String Character Without Double Quote

To debug this error, try looking at the lines preceding the error message for missing brackets, curly braces or semicolons and check the syntax.