wiley_pastebin

lesson 2 clockdisplay 6

Mar 15th, 2019
3,281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. public class ClockMain {
  2.  
  3.  public static void main(String[] args){
  4.   ClockDisplay clock = new ClockDisplay();
  5.   for(int i = 0; i < 2*60; i++){
  6.    System.out.println("The time is: " +
  7.           clock.getTimeDisplay());
  8.    clock.tick();
  9.   }
  10.  }
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment