Guest User

Untitled

a guest
Feb 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4.  
  5. public class Seconds {
  6.  
  7.     public static void main (String[] args){
  8.        
  9.         Scanner input = new Scanner(System.in);
  10.        
  11.         int hour1;
  12.         int min1;
  13.         int sec1;
  14.         int hour2;
  15.         int min2;
  16.         int sec2;
  17.        
  18.         System.out.println("Input first clock time...");
  19.         System.out.println("Hours: ");
  20.             hour1 = input.nextInt();
  21.         System.out.println("Minutes: ");
  22.             min1 = input.nextInt();
  23.         System.out.println("Seconds ");
  24.             sec1 = input.nextInt();
  25.         System.out.println("\nInput second clock time...");
  26.         System.out.println("Hours: ");
  27.             hour2 = input.nextInt();
  28.         System.out.println("Minutes: ");
  29.             min2 = input.nextInt();
  30.         System.out.println("Seconds ");
  31.             sec2 = input.nextInt();
  32.            
  33.    
  34.    
  35.    
  36.    
  37.     }
  38.            
  39.         public static int toSeconds(int hour1, int min1, int sec1, int hour2, int min2, int sec2)
  40.                 {
  41.                     if(hour1 < 12){
  42.                         hour1*3600;}
  43.                     min1*60;
  44.                    
  45.                    
  46.                 }
  47.        
  48.        
  49.     }
  50. }
Add Comment
Please, Sign In to add comment