0
I can't understand the error
https://code.sololearn.com/ce9ya6gNtiVg/?ref=app https://code.sololearn.com/ce9ya6gNtiVg/?ref=app
3 Answers
+ 10
You try to access a variable of a different scope, try declaring it in the upper scope...
(The scanner)
+ 10
You did something like:
{
//var "s" exists in this scope
}
{
//different scope, "s" does not exist here
}
Can't give Java-specific solution.
0
can you please tell me in details