public static < T > T [ ] add ( final T [ ] ar , final T e ) { final int s = ar . length ; final T [ ] t = Arrays . copyOf ( ar , s + 1 ) ; t [ s ] = e ; return t ; }
Adds an entry to the end of an array and returns the new array .