Android Int Array Expand arrayintexpend(int[] array, int increment)

Here you can find the source of arrayintexpend(int[] array, int increment)

Description

arrayintexpend

Declaration

public static int[] arrayintexpend(int[] array, int increment) 

Method Source Code

//package com.java2s;

public class Main {
    public static int[] arrayintexpend(int[] array, int increment) {
        System.arraycopy(array, 0,
                array = new int[array.length + increment], 0, array.length
                        - increment);/* w  w w.java  2s  . c  o  m*/
        return array;
    }
}