2016-10-19 16:43:43 +00:00
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
public class Test{
|
|
|
|
public static void main(String [] args){
|
2016-10-21 11:19:12 +00:00
|
|
|
Time t = new Time(11, 00, "am");
|
2016-10-19 16:43:43 +00:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|