Here you can find the source of arrayintexpend(int[] array, int increment)
public static int[] arrayintexpend(int[] array, int increment)
//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; } }