Hey if anyone out their can help me out ASAP, It will very much be appreciated.
(format an integer) Write a method with the following header to format the integer with the specified width.
public static String format(int number, int width)
The method returns a string of the number with on or more prefix 0s. the size of the string is the width. For example, format (34,4) returns 0034 and format (35,5) returns 00034. If the number is longer than the width, the method returns the string representation of the number. For example, format (34,1) returns 34.
Write a test program that prompts the user to enter a number and its width and displays a string returned by invoking format (number, width).