public Formatter format (Locale l, String format, Object… args)

Writes a formatted string to this object's destination using the specified locale, format string, and arguments.

Parameters:
l     The locale to apply during formatting. If l is null then no localization is applied. This does not change this object's locale that was set during construction.
format     A format string as described in Format string syntax
args     Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java™ Virtual Machine Specification.

Returns:  This formatter

Exceptions:
IllegalFormatException     If a format string contains an illegal syntax, a format specifier that is incompatible with the given arguments, insufficient arguments given the format string, or other illegal conditions. For specification of all possible formatting errors, see the Details section of the formatter class specification.
FormatterClosedException     If this formatter has been closed by invoking its close() method