I am parsing from an xml document into an array.
In my xml doc there are some line breaks notated in this format:
My Eclipse console shows them correctly with a line break if i sysout the arraylist.
But is it somehow possible to show what is really saved in that variable?
Example:
sysout(myarray[1]);
current output:
xyz
xyz
wanted output:(or something like that)
xyz\n\nxyz
You can use the method
escapeJavaatorg.apache.commons.lang.StringEscapeUtilsfrom the Apache Commons Lang library. Take a look at the javadoc. Download the library here.