Hi,
Can anyone help explain this output?
OUTPUT:
"1213%1$s"
Here's the explaination from exam lab:
"When using the printf method, the
String formatting will be done for the first argument only. Other arguments will be considered as normal Strings, and they will not be formated"
What happended to "14%1$s" ?
How do you figure out which is the 1st argument?
In chapter 6's section on formating in K&B SCJP6 book, it doesn't show formating arguments for the printf() and format() methods in quotes("").
thank you
-Fritz