课后习题

 1 package com.java; 
 2 
 3 public class time extends Thread{
 4     
 5     public void run(){
 6         while(true){    
 7             System.out.println("2016");
 8         try{
 9             Thread.sleep(100);
10         }catch(Exception e){
11             e.printStackTrace();
12         }
13         }
14     }
15     public static void main(String[] args) {
16         new time().start();
17     }    
18 }

原文地址:https://www.cnblogs.com/TENOKAWA/p/5280075.html