3 Answers
+ 10
You try to access a variable of a different scope, try declaring it in the upper scope... (The scanner)
31st Jul 2018, 4:39 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 10
You did something like: { //var "s" exists in this scope } { //different scope, "s" does not exist here } Can't give Java-specific solution.
31st Jul 2018, 6:23 PM
Valen.H. ~
Valen.H. ~ - avatar
0
can you please tell me in details
31st Jul 2018, 4:55 PM
zoufisha khan