Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public class Project12 {
  2.  
  3. public static void main(String[] args) {
  4. SimpleClock clock = new SimpleClock();
  5. System.out.println("Clock starts at time: " + clock.time());
  6. clock.set(11, 59, 00, false);
  7. System.out.println("Clock has been set to time: " + clock.time());
  8. for (int j = 0; j < 60; j++) {
  9. for (int i = 0; i < 60; i++) {
  10. clock.tick();
  11. System.out.println("TICK: " + clock.time());
  12. }
  13. }
  14. System.out.println("Clock finally reads: " + clock.time());
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement