//ERDDAP/com.cohort.util/ScriptString2/toNewlineString
toNewlineString
[JVM]
open fun toNewlineString(ar: Array<Any>): String
Generates a newline-separated string, with a newline at the end.
WARNING: This is simplistic. It doesn't do anything special for strings with internal newlines.
Return
a String with the values, with a '\n' after each value, even the last. Returns null if ar is null. null elements are represented as "[null]".
Parameters
JVM
ar | an array of objects (for an ArrayList or Vector, use o.toArray()) |
[JVM]
open fun toNewlineString(ar: Array<Int>): String
This generates a newline-separated (always '\n') String from the array.
Return
a newline-separated String (or null if ar is null)