src/java/fr/jayasoft/ivy/util/StringUtils.java
/**
     * Joins the given object array in one string, each separated by the given separator.
     * Example: join(new String[] {"one", "two", "three"}, ", ") -> "one, two, three"
     * 
     * @param objs
     * @param sep
     * @return
     */
Joins the given object array in one string, each separated by the given separator.

@param objs
@param sep
@return
Joins the given object array in one string each separated by the given separator . @param objs @param sep @return
public static String join(Object[] objs, String sep) {
        StringBuffer buf = new StringBuffer();
        for (int i = 0; i < objs.length; i++) {
            buf.append(objs[i]).append(sep);
        }
        if (objs.length > 0) { 
            buf.setLength(buf.length() - sep.length()); 
        }
        return buf.toString();
    }
public static String join ( Object [ ] objs , String sep ) { StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < objs . length ; i ++ ) { buf . append ( objs [ i ] ) . append ( sep ) ; } if ( objs . length > 0 ) { buf . setLength ( buf . length ( ) - sep . length ( ) ) ; } return buf . toString ( ) ; }
Joins the given object array in one string, each separated by the given separator.
Joins the given object array in one string each separated by the given separator .
// delete sep
