Files
java-core-examples/string-format/output/07-formatted-printf.txt
T

23 lines
483 B
Plaintext

== four spellings, one result ==
Hi Asha, 3 items, Rs 1499.50
Hi Asha, 3 items, Rs 1499.50
Hi Asha, 3 items, Rs 1499.50
Hi Asha, 3 items, Rs 1499.50
format == formatted == Formatter: true
== formatted() on a text block ==
Invoice for Asha
items : 3
total : 1,499.50
== printf returns the PrintStream, so calls chain ==
one two three
== %n vs \n ==
true on this platform (line.separator is \n)
== arrays are not spread into varargs the way you might hope ==
x-1
p-q
p-q