I need to output integer values in a 4 digit number(ie 4 = 0004) I know i can do this using VB's format command but is there somehting like this in java?

Thanks