You could use the String.format() method. It has two parameters . The first is a format identifier, the second is the output string. The identifier starts with
the % symbol. Then you have some...