public final class SimpleFormat
extends java.lang.Object
printf in C).
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(java.lang.String format,
java.lang.Object... args)
Writes a formatted string to the output destination of the
Formatter. |
public static java.lang.String format(java.lang.String format,
java.lang.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-2020 Google. All Rights Reserved.