Here you can find the source of arrayConcatInt(final int[] original, final int[] appender)
Parameter | Description |
---|---|
original | the original |
appender | the array to append |
public static int[] arrayConcatInt(final int[] original, final int[] appender)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { /**//from w ww. ja v a 2s . c om * Concatenates two integer arrays * * @param original the original * @param appender the array to append * @return the concatenated array */ public static int[] arrayConcatInt(final int[] original, final int[] appender) { final int[] result = Arrays.copyOf(original, original.length + appender.length); System.arraycopy(appender, 0, result, original.length, appender.length); return result; } }