
// define a class that extends Thread class
class MyThread extends Thread {

	String threadName;

	public MyThread(String name) {
		threadName = name;
	}
	
	@Override
	public void run() {
		// define the job/process to be executed
		System.out.println(threadName + " is starting...");
	}
}

public class TestThread {

	public static void main(String[] args) {

	}

}
