public static int [ ] append ( int [ ] lhs , int [ ] rhs ) { int [ ] rs = java . util . Arrays . copyOf ( lhs , lhs . length + rhs . length ) ; System . arraycopy ( rhs , 0 , rs , lhs . length , rhs . length ) ; return rs ; }
Append two arrays of integer type together producing a fresh array whose length equals that of the first and second added together .