Today I noticed that I cannot use * to pass width or precision arguments to the Java printf implementation.
Thus, the following printf arguments are valid in C, but not in Java:
"%*d", 10, 3 "%-*d", 10, 3 "%0*d", 10, 3 "%*.5f", 11, 1.0/9 "%-11.*f", 5, 1.0/9 "%0*.*f", 11, 5, 1.0/9
Are there other implementation differences that I should be aware of?
source share