Variable declaration
Inside a class and inside a method we can declare variables. I wish to know whether it is possible to declare variables inside a loop for example while loop, do loop and for loop etc.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Dec 6, 2011, 12:58 PM EST
They must also have different names from local variables declared within the containing method as otherwise there would be no way to access the latter from within the loop.
Posted Dec 6, 2011, 1:09 PM EST