All pastes #979034 Raw Edit

vikky

public text v1 · immutable
·published 2008-04-10 01:07 UTC
rendered paste body
class Swapper {	private int id1;	private int id2;	public Swapper(){		id1=0;		id2=0;	}	public boolean swap(){		return false;	}		class VThread extends Thread{		private int id;		public VThread(int myId){			id=myId;		}		public void run(){		}		public int getid(){ return this.id; }	}	public static void main(String []args){		Swapper p = new Swapper();		VThread []bunch = new VThread[3];		bunch[0] = new VThread(123);		bunch[1] = new VThread(456);		bunch[2] = new VThread(789);				for(VThread t : bunch){			t.start();		}	}}