Java Utililty Methods Array Create

List of utility methods to do Array Create

Description

The list of methods to do Array Create are organized into topic(s).

Method

T[]array(T... ar)
array
return ar;
T[]array(T... elements)
Shortcurt to create an array of elements.
return elements;
T[]array(T... elems)
Shortcut for creating an array of T.
return elems;
T[]array(T... ts)
Creates an array of type T containing the given elements.
return ts;
T[]array(T... values)
Wrapper for aray
return values;
T[]array(T... values)
Terse (especially as a static import) way to create a T[] literal.
return values;
int[]arrayConstructor(int len)
array Constructor
int[] A = new int[len];
for (int i = 0; i < len; i++) {
    A[i] = i;
return A;
int[]arrayOf(int... values)
Generates an int[] from comma-separated values.
return values;
long[]arrayOf(long... values)
Convenience method to convert from unspecified number of parameters into an array of parameters
return values;
T[]arrayOf(T... elements)
Returns an array of parameters.
return elements;