Here you can find the source of intArrayConcat(int[] a, int[] b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
public static int[] intArrayConcat(int[] a, int[] b)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www .jav a 2 s . c o m * Return a new int[] which is the concatenation of a and b * * @param a * @param b * @return */ public static int[] intArrayConcat(int[] a, int[] b) { int[] retval = new int[a.length + b.length]; System.arraycopy(a, 0, retval, 0, a.length); System.arraycopy(b, 0, retval, a.length, b.length); return retval; } }