Not able to get around this checkstyle error

I guess this is due to the fact that you declared the variable in some line and used the declared variable after 4 lines. For eg:
int tc

tc = tc + 1

This isn’t allowed. Try declaring and using the variable in the same line.

1 Like

Try keeping the line gap to 3 as it is suggested (before deceleration of tc) also consider it making final.

1 Like

Just shift the decoration of the variable in next line. As the trace suggests, the space between declaration and usage is more than 3 lines.

1 Like

Click on the web view icon(bellow breaker icon) and paste there html link given on the terminal (file://home/crio-user…/main.html). You get a clear view about the error. Change your code according to remove the check style error.