public static String join(String delim, Object[] objects) {
    // Do not use varargs to prevent some silly compiler warnings.
    if (objects.length == 0) return "";
    return join(new StringBuilder(), delim, objects).toString();
  }
public static String join ( String delim , Object [ ] objects ) { if ( objects . length == 0 ) return "" ; return join ( new StringBuilder ( ) , delim , objects ) . toString ( ) ; }
Joins {@code objects} with {@code delim} as the delimiter.