Originally Posted by
naturis
thanks lads and jibberjabber appreciate it I know your sick of seeing this stuff all day christ i'm going mental with it seeing syntax errors all day i'm doing a hdip computer course and struggling on these questions i'm doing static methods with some loops in java programming
heres another horrendous question
Create a class NumberFormatter that includes a method with the
following header to format an integer with the specified width.
public static String format(int number, int width)
The method returns a string for the number with one or more prefix 0s. The number
should be greater or equal to 0. The size of the string is the width. For example,
format(34, 4) returns 0034 and format(34, 5) returns 00034. If the number is longer than
the width, the method returns the string representation for 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)
if I could get the echo and this I might scrape a pass I did a boolean and and then a 2 counting up methods but I got them I been looking all day in the intro to prgramming book and online like a spa trying to figure it out lol, whats the new scanner library jibberjabber ??