Originally posted by V Srinivasan:
What JLS says - If execution of the Statement completes abruptly for any other reason, the while statement completes abruptly for the same reason.
It says invalid declaration. In while loop you are trying to declare and assign int k=23 infinitely(repeatedly), is that you want to do?, I think that is the possible reason for error.
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
Two software engineers solve most of the world's problems in one K&R sized bookhttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton