I have a
string that I get from a JTextArea. In the text area, the message looks like this
Hi there
Hope you have a good day
Cheers, Rachel
Now I need to replace the end of lines with the '\n' character.
I have tried to determine how this character is stored in the string by looking on the net and by trying this
System.out.println(myString.lastIndexOf('thecharacter'));
Where the character was
\n
\r
\f
and '\u000D' (but this one doesnt compile)
Does anyone know how to find this character?
Thanks
Rachel