Java Array Append appendArray(int[][] array, int[] staple)

Here you can find the source of appendArray(int[][] array, int[] staple)

Description

append Array

License

Open Source License

Declaration

public static int[][] appendArray(int[][] array, int[] staple) 

Method Source Code

//package com.java2s;

public class Main {
    public static int[][] appendArray(int[][] array, int[] staple) {
        int[][] output = new int[array.length + 1][];

        System.arraycopy(array, 0, output, 0, array.length);
        output[array.length] = staple;// ww w. j  a v a  2  s. c o m

        return output;
    }
}

Related

  1. addToArray(final int[] array, int index, final String csvString, final String delim)
  2. addToArray(int[] a, int value)
  3. addToArray(String[] items, String str)
  4. appendArray(final byte[] buffer1, final byte[] buffer2)
  5. appendArray(Object[] arr, Object obj)
  6. appendArray(Object[] array1, Object[] array2)
  7. appendArray(String[] A, String... B)
  8. appendArray(StringBuilder bld, Object[] array, String sep)