Here you can find the source of arrayToLines(String[] lines)
public static StringBuilder arrayToLines(String[] lines)
//package com.java2s; //License from project: Open Source License public class Main { public static StringBuilder arrayToLines(String[] lines) { return arrayToLines(new StringBuilder(), lines); }//from w w w .j a va2s. c o m public static StringBuilder arrayToLines(StringBuilder builder, String[] lines) { for (String line : lines) builder.append(line).append("\n"); return builder; } }