Developer community
0 votes
asked by Guru (27.1k points) 35 52 113 | 52 views

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 Advisor (8.4k points) 10 15 18

Related questions

0 votes
1 answer
asked by john Guru (27.1k points) 35 52 113 | 19 views
0 votes
1 answer
asked by john Guru (27.1k points) 35 52 113 | 15 views
0 votes
1 answer
asked by smith Geek (15.3k points) 18 43 68 | 13 views
0 votes
1 answer
0 votes
1 answer
asked by rock Expert (15k points) 15 23 32 | 66 views
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

3.8k questions

4k answers


10.7k users

3,754 questions
4,046 answers
10,709 users