Sounds like you're thinking of the Format class developed by Cay Horstmann for his
Core Java book. See the link to Format at the end of the page. This class is moderately useful for people coming from C who really want something similar to printf, but in the long run you're better off learning how to use the standard Java libraries to do this sort of thing. In particular classes like DecimalFormat and DateFormat (esp SimpleDateFormat) will be what you need. And maybe a simple method to add spaces (or zeroes) to the left hand side of a field, to make it fit a particular width:
This sort of thing is only useful if your output will be viewed in a fixed-width font. Often that's not the case. E.g for a GUI you're better off using things like JTextField and setting the alignment appropriately. Lots of ways to format things, depending on where you want the output to go, and what it should look like.