Can anyone help me with creating this code in Java? PLEASE! Thanks in advance!
Ask the user for the number of milliseconds, validate that it's not negative, and
display the result, then ask if the user wants to convert another number
(you may use a confirmation dialog, or you may allow input of 1 for yes
and 2 for no). Keep converting milliseconds until the user chooses no.
Example: (5500) should return 0:00:05 and convertMillis(1 00000) should return 0:01:40.
except your result MUST be formatted so that minutes and seconds are always two digits
Ask the user for the number of milliseconds, validate that it's not negative, and
display the result, then ask if the user wants to convert another number
(you may use a confirmation dialog, or you may allow input of 1 for yes
and 2 for no). Keep converting milliseconds until the user chooses no.
Example: (5500) should return 0:00:05 and convertMillis(1 00000) should return 0:01:40.
except your result MUST be formatted so that minutes and seconds are always two digits
Comment