class task_0_t implements Runnable {
private Thread t;
public void start() {
if(t == null) {t = new Thread(this); t.start();}
}
public void run() {
int count = 100;
//while(count--) for(int i = 1; i <= 26; ++i) System.out.println(i);
while(count-- == 0 ? false : true) for(int i = 1; i <= 26; ++i) System.out.println(i);
}
}
class task_1_t extends Thread {
public void run() {
int count = 100;
while(count-- == 0 ? false : true) for(int i = 'A'; i <= 'Z'; ++i) System.out.println((char)i);
}
}
public class main {
public static void main(String[] args) {
task_0_t task_0 = new task_0_t();
task_0.start();
task_1_t task_1 = new task_1_t();
task_1.start();
}
}
|