class Thraeadaimtocode implements Runnable { public void run() { for(int i=1; i<=4; i++) { System.out.println("Threadaimtocode: " +i); } } }