Java Utililty Methods Array Concatenate

List of utility methods to do Array Concatenate

Description

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

Method

float[][]concatenate(float[][] a, float[][] b, int dim)
concatenate
float[][] out = null;
if (dim == 0) {
    if (a[0].length != b[0].length) {
        System.out.println("number of columns of inputs are not the identical");
        return null;
    out = new float[a.length + b.length][a[0].length];
    int k = 0;
...
int[]concatenate(int[]... arrays)
Concatenates a series of arrays.
List<Integer> list = new LinkedList<Integer>();
for (int[] array : arrays)
    list.addAll(toList(array));
return toArray(list);
Stringconcatenate(Object[] array)

Joins the provided elements into a single String.

return join(array, null);
Stringconcatenate(Object[] array)
concatenate
return join(array, null);
Stringconcatenate(Object[] array)
Concatenates elements of an array into a single string.
return join(array, "");
Stringconcatenate(Object[] array)

Concatenates elements of an array into a single String.

return join(array, null);
Stringconcatenate(Object[] collection)
concatenate
return concatenate(Arrays.asList(collection), ",");
Stringconcatenate(String[] args)
Returns the list of arguments as space separated string for the command line.
if (args == null) {
    return null;
String quote = getQuoteType();
String result = "";
for (String arg : args) {
    if (!result.equals("")) {
        result += " ";
...
Stringconcatenate(String[] strings, String sep)
Concatenate an array of strings.
return concatenate(Arrays.asList(strings), sep);
T[]concatenate(T[] first, T[] second)
Concatenates two arrays and returns the result
T[] result = Arrays.copyOf(first, first.length + second.length);
System.arraycopy(second, 0, result, first.length, second.length);
return result;