I'm addressing the first error. I believe the diagnosis is correct (scope).
There are other errors, but we usually address them starting with the first.
Feel free to test the code yourself,...
Type: Posts; User: Starstreak
I'm addressing the first error. I believe the diagnosis is correct (scope).
There are other errors, but we usually address them starting with the first.
Feel free to test the code yourself,...
The scanner is not visible in the for loop because of variable scope.
Try making the scanner static (belonging to the class).