Java Array Convert to arrayToLines(String[] lines)

Here you can find the source of arrayToLines(String[] lines)

Description

array To Lines

License

Open Source License

Declaration

public static StringBuilder arrayToLines(String[] lines) 

Method Source Code

//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;
    }
}

Related

  1. arrayToHTMLString(Object[] objectArray, int indent)
  2. arrayToInt(final byte[] array, final int start)
  3. arrayToJava(double[] v, int off, int len, String name)
  4. arrayToJson(int[] x)
  5. arrayToLine(Object[] source)
  6. arrayToLowercase(String[] array)
  7. arrayToMatlabStringArray(double da[])
  8. arrayToOneLineSpaceDelimitedString(Object obj[])
  9. arrayToQueryString(String key, Object[] arr)