private static String wrapWith ( char wrapper , String ... input ) { StringBuilder escaped = new StringBuilder ( ) ; for ( String i : input ) { escaped . append ( ", " ) ; escaped . append ( wrapper ) . append ( i ) . append ( wrapper ) ; } if ( escaped . length ( ) > 2 ) { escaped . delete ( 0 , 2 ) ; } return escaped . toString ( ) ; }
Helper method to wrap varargs with the given character .