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
14 views
asked by (27.1k points) 31 51 100

1 Answer

0 votes
The following table shows the format specifiers:

Format Specifier    Conversion Applied
%a %A                 Floating-point hexadecimal
%b %B                 Boolean
%c                        Character
%d                         Decimal integer
%h %H                Hash code of the argument
%e %E                Scientific notation
%f                         Decimal floating-point
%g %G                Uses %e or %f, whichever is shorter
%o                         Octal integer
%n                         Inserts a newline character
%s %S                  String
%t %T                      Time and date
%x %X                      Integer hexadecimal
%%                          Inserts a % sign

If the argument doesn't match the type-checks, an IllegalFormatException is thrown.
answered by (15k points) 16 23 30

Related questions

0 votes
1 answer 50 views
50 views asked by john (27.1k points) 31 51 100
0 votes
1 answer 20 views
20 views asked by john (27.1k points) 31 51 100
0 votes
1 answer 19 views
0 votes
1 answer 59 views
59 views asked by taye (5k points) 7 9 12
0 votes
1 answer 26 views
26 views asked by felin (8.4k points) 10 15 18
...