/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package puzzle; /** * * @author Dell- */ class th implements Runnable { @Override public void run() { while(true){ try{ Thread.sleep(100); System.out.println("!!"); }catch(Exception e){ } } } public static void main(String[] args) { th t = new th(); Thread th = new Thread(t); th.start(); } }