programmazione-java/src/Time/Test.java
Orange_Dugongo dcf8057269 Fix 12 am/pm
2016-10-21 13:19:12 +02:00

17 lines
436 B
Java

import java.util.Scanner;
public class Test{
public static void main(String [] args){
Time t = new Time(11, 00, "am");
Time t2 = new Time(1, 1, "pm");
Scanner sc = new Scanner(System.in);
t.shift(sc.nextInt(), sc.nextInt());
t.print(System.out);
if(t.isAfter(t2))
System.out.println("t viene prima");
else
System.out.println("t viene dopo");
}
}