rendered paste body// part 3, my custom creation from "SimpleThread" and "UserInput" to form this//http://java.sun.com/docs/books/tutorial/essential/threads/simple.htmlimport java.io.*;public class SimpleThreadInput extends Thread { String name= ""; public SimpleThreadInput () { super("hello"); try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in));//String name= "";System.out.println("Enter your name: ");System.out.flush();name = in.readLine();System.out.println("Thank you. " + name +" ,here comes the thread!"); } catch(IOException io) {} } public void run() { for (int i = 0; i < 10; i++) { System.out.println(i + " " + name); try { sleep((long)(Math.random() * 1000)); } catch (InterruptedException e) {} } System.out.println("DONE! " + name); }public static void main (String[] args){new SimpleThreadInput().start(); }}