Skip to content

Instantly share code, notes, and snippets.

@davidtsong
davidtsong / ExtendThread.java
Created May 26, 2014 21:31
Creating a new thread by extending the Thread Class
public class MyThread extends Thread{
public void run()
{
//run code goes here
}
}
MyThread myThread = new MyThread();
myThread.start()