An invocation of this method of the form con.printf(format, args) behaves in exactly the same way as the invocation of
con.format(format, args). @param format A format string as described in Format string syntax. @param 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 number of arguments is variable and may be zero. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by The Java™ Virtual Machine Specification. The behaviour on a null argument depends on the conversion. @throws 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. @return This console
format(String format, Object... args)
method. The method uses the default for the current JVM instance locale, as if it is specified by the Locale.getDefault()
call.
@param format A format string.
@param args The arguments list. If there are more arguments than those specified by the format string, then the additional arguments are ignored.
@return This stream.
@throws IllegalFormatException If the format string is illegal or incompatible with the arguments or the arguments are less than those required by the format string or any other illegal situation.
@throws NullPointerException If the given format is null.
format(String format, Object... args)
method. The method uses the default for the current JVM instance locale, as if it is specified by the Locale.getDefault()
call.
@param format A format string.
@param args The arguments list. If there are more arguments than those specified by the format string, then the additional arguments are ignored.
@return This writer.
@throws IllegalFormatException If the format string is illegal or incompatible with the arguments or the arguments are less than those required by the format string or any other illegal situation.
@throws NullPointerException If the given format is null.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|