public final class SimpleFormat extends Object
printf in C).
| Modifier and Type | Method and Description |
|---|---|
static String |
format(String format,
Object... args)
Writes a formatted string to the output destination of the
Formatter. |
public static String format(String format, Object... args)
Formatter.format - a format string.args - the arguments list used in the format() method. If there are
more arguments than those specified by the format string, then
the additional arguments are ignored.Formatter.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.Copyright © 2009-2016 Google. All Rights Reserved.