Skip to content

Instantly share code, notes, and snippets.

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