The StringBuilder Class may assist you in adding zeros to the String you wish to pad out:
You may want to put the append() method call in a loop, to keep on appending zeros to the StringBuilder object until you reach your desired padded length. Once complete, calling the paddedString.toString() method will give you a padded String object.
Regards, Jon [ July 16, 2007: Message edited by: Jon Anslow ]
Joined: Nov 16, 2004
I have added to my class but get a cannot resolve error.