public class Morecombe{ public static void main(String argv[]){ Morecombe m = new Morecombe(); m.go(new Turing(){}); } public void go(Turing t){ t.start(); } } class Turing extends Thread{ public void run(){ for(int i =0; i < 2; i++){ System.out.println(i); } } } /* public class vandeleur extends Thread{ static String sName = "vandeleur"; public static void main(String argv[]){ /* Integer ten=new Integer(10); Long nine=new Long (9); System.out.println(ten + nine); int i=1; System.out.println(i + ten); String s=new String("Bicycle"); int iBegin=1; char iEnd=3; System.out.println(s.substring(iBegin,iEnd)); vandeleur t = new vandeleur(); t.piggy(sName); System.out.println(sName); } public void piggy(String sName){ sName = sName + " wiggy"; start(); try { Thread.sleep(1000); } catch (InterruptedException e) {} } public void run(){ for(int i=0;i < 4; i++){ sName = sName + " " + i; System.out.println(sName); } } } */