@ThreadSafe public final class ArrayX extends Object
Modifier and Type | Method and Description |
---|---|
static String |
intsToString(int[] intArray)
Returns the space-delimited concatenation of the specified int array.
|
static String |
stringsToString(String[] stringArray)
Returns the space-delimited concatenation of the specified string array.
|
static int[] |
stringToInts(String s)
Splits the space-delimited string (s) of integers into an array.
|
static String[] |
stringToStrings(String s)
Splits the space-delimited string (s) of strings into an array.
|
public static String intsToString(int[] intArray)
stringToInts(String)
public static int[] stringToInts(String s)
s
- space-delimited string of integers,
which may be empty or null (in which cases, an empty array is returned)intsToString(int[])
public static String stringsToString(String[] stringArray)
stringToStrings(String)
public static String[] stringToStrings(String s)
s
- space-delimited string of strings, which may be empty or null
(in which cases, an empty array is returned)stringsToString(String[])