Well printf is designed for formatting, I would probably use it accordingly. If you have ever used C, it works the same way.

This should answer all of your printf questions (Using Java's printf( )...