package com.godoro.samples.lang;
import java.util.*;

public class InnerThreadTest {
  
  public static void main(String[] args){
    Runnable test=new Runnable(){
      public void run(){
	while(true){
	  try{
	    Thread.sleep(1000);                
            System.out.println("Other thread time : "+new Date());
          }catch(Exception e){
	    e.printStackTrace();
	  }
        }     
      }
    };
    Thread thread=new Thread(test);
    thread.start();      
    System.out.println("Main thread");      
  }
}

