Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

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

0 votes
52 views
asked by (27.1k points) 31 54 113

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 by (8.4k points) 10 15 20

Related questions

0 votes
1 answer 22 views
22 views asked by john (27.1k points) 31 54 113
0 votes
1 answer 15 views
15 views asked by john (27.1k points) 31 54 113
0 votes
1 answer 15 views
15 views asked by smith (15.3k points) 18 45 77
0 votes
1 answer 72 views
0 votes
1 answer 64 views
64 views asked by rock (15k points) 16 23 34
...