Java StringBuffer Examples

StringBuffer To File Java Example

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • This line : sbf.append(System.getProperty(“line.separator”)); is no good. It introduces null values into my program when taking String data from an arraylist and putting it into a StringBuffer. Instead i just append “\n” to each arraylist value and it stores itself properly. What is .getProperty(“line.separator) ? Why use it ?

Sponsors

Facebook Fans