public static final String print(String start, String delim, String quotStart, String quotEnd, String end, Collection<?> collection)
    {
        try
        {
            StringBuilder out = new StringBuilder();
            print(out, start, delim, quotStart, quotEnd, end, collection);
            return out.toString();
        }
        catch (IOException ex)
        {
            throw new IllegalArgumentException(ex);
        }
    }
public static final String print ( String start , String delim , String quotStart , String quotEnd , String end , Collection < ? > collection ) { try { StringBuilder out = new StringBuilder ( ) ; print ( out , start , delim , quotStart , quotEnd , end , collection ) ; return out . toString ( ) ; } catch ( IOException ex ) { throw new IllegalArgumentException ( ex ) ; } }
Returns collection items delimited with given strings. If any of delimiters
is null, it is ignored.
@param start Start
@param delim Delimiter
@param quotStart Start of quotation
@param quotEnd End of quotation
@param end End
@param collection
@return
@deprecated Use java.util.stream.Collectors.joining
@see java.util.stream.Collectors#joining(java.lang.CharSequence, java.lang.CharSequence, java.lang.CharSequence)