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

3,749 questions

4,049 answers


10,705 users

What is Java Format Class?

0 votes
asked 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.
The most commonly used format function is:
Formatter format(String fmtString, Object ... args)
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 by felin Advisor (8,400 points)

Related questions

0 votes
1 answer 18 views
0 votes
1 answer 11 views
0 votes
1 answer 11 views
11 views asked by smith Geek (15,340 points)
0 votes
1 answer 56 views
56 views asked by rock Expert (14,990 points)