i tried this if (stringOne.substring(1,5) == "R") to capture Rxxxx but i got, stringOne was not declared in this scope
You should really read with the intention to learn, instead of reading to try to prouve me wrong. ![]()
Look at this once more and think about it
if (stringOne.substring(1,5) == "R")
also,
stringOne was not declared in this scope
Did you declare a String name stringOne in your code?