somashaker goud wrote:
I understand that char cannot be empty but why its showing errors in for loop
Basically, once the compiler finds an error, it has to move on and find the next error. The problem with moving on and finding the next error, is that it is an error situation. The developer made a mistake, and all the compiler knows is that it is not conforming to specification. It can only guess on the mistake itself -- and hence, guess on where the mistake ends.
This is why
you should always work on the first few compiler errors. Compilation errors that appear later may be false positives. And also, some compilation errors that "appear" later may not even be found.
Henry