1 import java.util.Scanner; 2 public class DisplayTime { 3 public static void main(String[] args) { 4 Scanner input = new Scanner(System.in); 5 System.out.print("Enter an integer for seconds: "); 6 int seconds = input.nextInt(); 7 int minutes = seconds / 60 ; 8 int remainingSeconds = seconds % 60; 9 System.out.println(seconds + " seconds is " + minutes + " minutes and " + remainingSeconds + " seconds"); 10 } 11 12 }