Android Array Join join(int[] a1, int[] a2)

Here you can find the source of join(int[] a1, int[] a2)

Description

join

Declaration

static public int[] join(int[] a1, int[] a2) 

Method Source Code

//package com.java2s;

public class Main {

    static public byte[] join(byte[] a1, byte[] a2) {
        byte[] result = new byte[a1.length + a2.length];
        System.arraycopy(a1, 0, result, 0, a1.length);
        System.arraycopy(a2, 0, result, a1.length, a2.length);
        return result;
    }/*from  w ww  . ja va 2s.  c  o m*/

    static public int[] join(int[] a1, int[] a2) {
        int[] result = new int[a1.length + a2.length];
        System.arraycopy(a1, 0, result, 0, a1.length);
        System.arraycopy(a2, 0, result, a1.length, a2.length);
        return result;
    }
}

Related

  1. getList(long[] s, String separator, String quote)
  2. join(int[] follows)
  3. join(long[] follows)
  4. join(String[] track)
  5. join(byte[] a1, byte[] a2)