public static int [ ] append ( int lhs , int [ ] rhs ) { int [ ] rs = new int [ rhs . length + 1 ] ; rs [ 0 ] = lhs ; System . arraycopy ( rhs , 0 , rs , 1 , rhs . length ) ; return rs ; }
Append an integer item to the front of an array of integer type together producing a fresh array whose length equals that the second plus one .