Threads
public class SimpleThread implements Runnable {
public SimpleThread(String s) {
System.out.println(s+" "+i);
sleep((int)(Math.random()*1000));
catch(InterruptedException e) {}
System.println(s+" DONE!");
(new Thread(new SimpleThread("One")).start();