Skip to content

Instantly share code, notes, and snippets.

@Ptodue
Created August 8, 2017 09:51
Thread usage1
public class MyThread extends Thread {
public MyThread() {
super("MyThread");
}
public void run() {
System.out.println("Thread run() method executed.");
}
}
//Started with a "new MyThread().start()" call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment