public class SRDemo extends Thread {
public void run() {
try {
for( int i = 0; i < 7; i++ ) {
Thread.sleep(500);
System.out.println( this.getName() + ": " + i );
}
} ...
Type: Posts; User: gautammuktsar@gmail.com
public class SRDemo extends Thread {
public void run() {
try {
for( int i = 0; i < 7; i++ ) {
Thread.sleep(500);
System.out.println( this.getName() + ": " + i );
}
} ...