Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Project12 {
- public static void main(String[] args) {
- SimpleClock clock = new SimpleClock();
- System.out.println("Clock starts at time: " + clock.time());
- clock.set(11, 59, 00, false);
- System.out.println("Clock has been set to time: " + clock.time());
- for (int j = 0; j < 60; j++) {
- for (int i = 0; i < 60; i++) {
- clock.tick();
- System.out.println("TICK: " + clock.time());
- }
- }
- System.out.println("Clock finally reads: " + clock.time());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement