You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
505 B
Java
21 lines
505 B
Java
public class TacheA implements Runnable {
|
|
public void run(){
|
|
while(true){
|
|
synchronized(System.out){
|
|
System.out.println("Test A 1");
|
|
System.out.println("Test A 2");
|
|
System.out.println("Test A 3");
|
|
System.out.println("Test A 4");
|
|
System.out.println("Test A 5");
|
|
System.out.println("Test A 6");
|
|
try{
|
|
Thread.sleep(100);
|
|
}
|
|
catch (InterruptedException e){
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|