Developer community
0 votes
47 views
asked by Guru (27.1k points) 31 48 96 | 47 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.
 
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 Advisor (8.4k points) 10 15 18

Related questions

0 votes
1 answer
asked by john Guru (27.1k points) 31 48 96 | 18 views
0 votes
1 answer
asked by john Guru (27.1k points) 31 48 96 | 11 views
0 votes
1 answer
asked by smith Geek (15.3k points) 15 40 60 | 11 views
0 votes
1 answer
0 votes
1 answer
asked by rock Expert (15k points) 15 23 29 | 59 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

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users