Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 3
    This is not a good solution to write too many System.out.println() Commented Apr 22, 2013 at 5:43
  • @op Remember that println() adds a newline character at the end of the string (not the beginning). Commented May 16, 2014 at 5:51
  • @Hachi, System.lineSeparator() or System.getProperty("line.separator") can used to make code system independent. Commented Feb 1, 2017 at 6:08