//------------// Introduction to Programming Using Java: An Object-Oriented Approach//	Arnow/Weiss//------------class CountingThread extends Thread {	public CountingThread(int x) {		this.x = x;	}	/*********	public void run() {		int    i=0;		while (i<15) {			System.out.println(i);			i+=x;		}	}	*********/	public void run() {		int    i=0;		while (i<15) {			System.out.println(i);			i+=x;			try {				sleep(1);			} catch(Exception e) {}		}	}	private    int            x;}public class CountingThreadExample {	public static void main(String a[]) {		CountingThread  t1 = new CountingThread(2);		CountingThread t2 = new CountingThread(3);		t1.start();		t2.start();	}}