public static Object [ ] insertArray ( Object obj , Object [ ] arr ) { Object [ ] newArr = new Object [ arr . length + 1 ] ; System . arraycopy ( arr , 0 , newArr , 1 , arr . length ) ; newArr [ 0 ] = obj ; return newArr ; }
Insert an Object at front of array