Java Threads cheatsheet

public class MyThread extends Thread {
    public void run() {
        // work
    }
}
Thread myThread = new MyThread();
myThread.start();