I need to do this:
while (result2.charAt(j)!=\'\\\'){ }
I get an error saying: Invalid character constant.
Invalid character constant
Why? a
Looks like you need to escape the backslash. Try
while (result2.charAt(j)!='\\'){ }