Write and test a Java application with just a main method class called TimeConverter to do the
following:
(i) Prompt for and read in an integer value representing a time in seconds.
(ii) Print out the equivalent time in hours, minutes and seconds, in the format hrs:mins:secs. If
either mins or secs is less than 10, a leading zero should be displayed.
This is my code so far
/*
*
*/
package TimeConverter;
import java.util.Scanner;
/**
*
* @author etc07bnu
*/
public class TimeConverter {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner scan = new Scanner(system.in);
System.out.println("Please enter a value in seconds");
I know that not much has been done so far but im all new to this and completely stuck on the next steps
Help would be much appreciated
Regards!

New Topic/Question
Reply




MultiQuote




|