search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
49 views
asked Guru 27.1k points 31 50 97

1 Answer

0 votes
Formatter class outputs the formatted output. It can format numbers, strings, and time and date. It operates in a manner similar to the C/C++ printf() function.
 
Syntax
 
The most commonly used format function is:
 
Formatter format(String fmtString, Object ... args)
 
Note
 
The fmtSring consists characters that are copied to the output buffer and the format specifiers.
A format specifier begins with a percent sign followed by the format conversion specifier. For example, the format specifier for floating-point data is %f 
The format specifiers and the arguments are matched in order from left to right.
 
answered Advisor 8.4k points 10 15 18

Related questions

0 votes
1 answer 20 views
20 views
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 13 views
13 views
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 13 views
13 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 70 views
0 votes
1 answer 61 views
61 views
asked rock Expert 15k points 15 23 30
...