To help figure out what is happening, add some printlns to the code to print out the values of the variables that are used to control the loop as the loop executes. The print out should show you why...
Type: Posts; User: Norm
To help figure out what is happening, add some printlns to the code to print out the values of the variables that are used to control the loop as the loop executes. The print out should show you why...
You have defined the String palindrome locally inside of a pair of {}s. Its definition is NOT known outside of the enclosing {}s. It is out of scope there.
You need to define it at the same level of...