Create a java class called Timer which contains a method called Display that prints a counter beginning at 00:00 and increments second and minute by minute until it stops at a total of 60 minutes.
public class Timer { public static void printTimer(){ for(int i = 0;i<60;i++){ for(int j = 0;j<60;j++){ System.out.printf("%02d:%02d\n",i,j); } } } public static void main(String[] args) { printTimer(); } }
Get Answers For Free
Most questions answered within 1 hours.