I need to do this:
while (result2.charAt(j)!=\'\\\'){ }
I get an error saying: Invalid character constant.
Invalid character constant
Why? a
Use '\\'. It's because backslash is used in escape sequence like '\n'. With a single \ the compiler have no way to know.
'\\'
'\n'
\