SyntaxFix
Write A Post
Hire A Developer
Questions
System.out.println("I\nam\na\nboy"); System.out.println("I am a boy".replaceAll("\\s+","\n")); System.out.println("I am a boy".replaceAll("\\s+",System.getProperty("line.separator"))); // portable way