1 public class Racer implements Runnable {
5 System.out.println("Thread 2!");
10 public static void main (String[] args){
11 Racer racer = new Racer();
12 Thread t = new Thread(racer);
15 Thread t2 = new Thread(racer);
18 System.out.println("Thread main!");
20 int c = 420 / racer.d; // (2)
21 System.out.println(c);
24 static void doSomething (int n) {
25 try { Thread.sleep(n); } catch (InterruptedException ix) {}