Campbell Ritchie wrote:Look at the Formatter class or these sections in the Java™ Tutorials: 1 2 and 3. I can't seem to find the * character in Formatter, however. Are you sure about that?
Maybe it's not supported in
Java, but in C, the '*' character allows you to specify the field width in the argument list
From the MS C++ docs
The second optional field of the format specification is the width specification. The width argument is a nonnegative decimal integer controlling the minimum number of characters printed.... If the width specification is an asterisk (*), an int argument from the argument list supplies the value.