question: public static String [ ] addStringToArray ( String [ ] array , String str ) { if ( ObjectUtils . isEmpty ( array ) ) { return new String [ ] { str } ; } String [ ] newArr = new String [ array . length + 1 ] ; System . arraycopy ( array , 0 , newArr , 0 , array . length ) ; newArr [ array . length ] = str ; return newArr ; }
target:  Append the given String to the given String array, returning a new array consisting of the input array contents plus the given String.