I am trying to return the value of my boolean variable localFound at the end of my code but when I compile, I get an error that says it cannot find the symbol. I know this is a
The localFound variable is declared within the if statement, thus, it's not visible outside that statement. Try declaring it right before the if statement (outside it) and you'll get the code compiling.