public final class SimpleFormat extends Object
printf in C).
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleFormat.BigDecimalLayoutForm
The enumeration giving the available styles for formatting very large
decimal numbers.
|
| 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.IllegalFormatException - 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.FormatterClosedException - if the Formatter has been closed.Copyright © 2009-2015 Google. All Rights Reserved.