I need to do this:
while (result2.charAt(j)!=\'\\\'){ }
I get an error saying: Invalid character constant.
Invalid character constant
Why? a
The backslash is a special character and it needs to be escaped with another backslash. Like this:
while (result2.charAt(j)!='\\'){ }