top of page

How to append new line in StringBuilder

  • Writer: Jonathan
    Jonathan
  • Jun 19, 2019
  • 1 min read

There are several ways to add(call append in StringBuilder) new line.

  1. System.lineSeparator(); - Over Java 7

  2. System.getProperty("line.separator");

  3. \n (* not /n)



Comments


Single post: Blog_Single_Post_Widget
bottom of page