@@ -0,0 +1,1123 @@
+public class clock %7B%0A%09%0A%09int seconds;%0A%09int minutes;%0A%09int hours;%0A%09int minutesCounter;%0A%09String clockName;%0A%09%0A%09public clock(String startName)%7B%0A%09%09%0A%09%09clockName = startName;%0A%09%0A%09%0A%09%09%0A%09%09System.out.println(%22Clock generated%22);%0A%09%7D%0A%0A%09public void setTime(int tickCounts) %7B%0A%09%09%0A%09%0A%09if (this.minutes == 60 && this.seconds == 0)%7B%0A%09%09this.seconds = 0;%0A%09%09this.minutes = 0;%0A%09%09this.hours++;%0A%09%7D%0A%09%09%0A%09if (this.seconds %3C 59)%7B%0A%09%09this.seconds = tickCounts - 60 * ((tickCounts / 60));%0A%09%7D%0A%09%0A%09else if (this.seconds == 59)%7B%0A%09%09this.minutes++;%0A%09%09this.seconds = 0;%0A%09%7D%0A%09%09%0A%09%7D%0A%0A%09public void printTime() %7B%0A%09%09%0A%09%09if (this.seconds %3C= 9 && this.minutes %3C= 9)%7B%0A%09%09System.out.println(this.clockName + %22: %22 + this.hours + %22:0%22 + this.minutes + %22:0%22 + this.seconds);%0A%09%09%7D %0A%09%09else if (this.seconds %3C= 9 )%7B%0A%09%09%09System.out.println(this.clockName +%22: %22 +this.hours + %22:%22 + this.minutes + %22:0%22 + this.seconds);%0A%09%09%0A%09%09%7D %0A%09%09else if ( this.minutes %3C= 9)%7B%0A%09%09%09System.out.println(this.clockName +%22: %22 + this.hours + %22:0%22 + this.minutes + %22:%22 + this.seconds);%0A%09%09%0A%09%09%7D%0A%09%09%0A%09%09else  %7B%0A%09%09%09System.out.println(this.clockName + %22: %22  + this.hours + %22:%22+ this.minutes + %22:%22 + this.seconds);%0A%09%09%7D%0A%0A%7D%0A%7D%0A

Create Clock.java