I have string like
\"I am a boy\".
I want to print like this way
\"I
am
a
boy\".
Can anybody help me?<
To make the code portable to any system, I would use:
public static String newline = System.getProperty("line.separator");
This is important because different OSs use different notations for newline: Windows uses "\r\n", Classic Mac uses "\r", and Mac and Linux both use "\n".
Commentors - please correct me if I'm wrong on this...