top of page

How to append new line in StringBuilder


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