I have a string like
"I am a boy".
I would like to print it this way
Can anybody help me?
System.out.println("I am a boy"); System.out.println("I am a boy".replaceAll("\s+"," ")); System.out.println("I am a boy".replaceAll("\s+",System.getProperty("line.separator"))); // portable way
1.4m articles
1.4m replys
5 comments
57.0k users