I understand the 1213 portion of the output, but don't undersatnd the rest of the output. Please expain. I read the Java Language documentation but don't get it.
Thanks in advance.
posted 7 years ago
There is only a format string in the call: "12%1$s". This simply constructs a string with the contents "12" plus the first argument in the argument list using string conversion (basically, creates a string which is "12" concatenated with the second argument of the printf() call.)
All code in my posts, unless a source is explicitly mentioned, is my own.