public static String format(String format, Object... args) {
    SimpleFormat f = new SimpleFormat();
    f.doFormat(format, args);
    return f.out.toString();
  }
public static String format ( String format , Object ... args ) { SimpleFormat f = new SimpleFormat ( ) ; f . doFormat ( format , args ) ; return f . out . toString ( ) ; }
Writes a formatted string to the output destination of the {@code Formatter}.

@param format
a format string.
@param args
the arguments list used in the {@code format()} method. If there are
more arguments than those specified by the format string, then
the additional arguments are ignored.
@return this {@code Formatter}.
@throws IllegalFormatFlagsException
if the format string is illegal or incompatible with the
arguments, or if fewer arguments are sent than those required by
the format string, or any other illegal situation.