Valdosta State University

You can also use a flag to left-justify and if the field is not wide enough, java just expands it so that the whole number is displayed. Another example: suppose you have an array of doubles and all numbers are are less than 1000, you could print them with two decimals so that the decimals lined up using a ................
................