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

3,749 questions

4,049 answers

114 comments

10,705 users

What is Java Format Class?

0 votes
42 views
asked May 4, 2014 by john Guru (27,140 points)

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 May 4, 2014 by felin Advisor (8,400 points)

Related questions

0 votes
1 answer 17 views
17 views asked May 4, 2014 by john Guru (27,140 points)
0 votes
1 answer 11 views
11 views asked May 4, 2014 by john Guru (27,140 points)
0 votes
1 answer 11 views
11 views asked Jan 5, 2014 by smith Geek (15,340 points)
0 votes
1 answer 59 views
0 votes
1 answer 54 views
54 views asked May 4, 2014 by rock Expert (14,990 points)
...