#WW

#WW
Home » » Program StopWatch Java

Program StopWatch Java

Written By Unknown on Friday, 21 March 2014 | 01:54

Program StopWatch Java

import java.io.*;

public class Stopwatch extends Thread{

    public void run(){
        try{
            for(int j=0; j<24; j++){
                for(int m=0; m<60; m++){
                    for(int d=0; d<60; d++){
                        System.out.println(j+":"+m+":"+d);
                        Thread.sleep(1000);
                    }
                }
            }
        }catch(Exception ex){
       
        }
    }
    public static void main(String[] args) throws IOException {
        Stopwatch s = new Stopwatch();
        s.start();
    }
}

0 komentar:

Post a Comment