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
500 B
Java

public class TacheB extends Thread {
public void run(){
while(true){
synchronized(System.out){
System.out.println("Test B 1");
System.out.println("Test B 2");
System.out.println("Test B 3");
System.out.println("Test B 4");
System.out.println("Test B 5");
System.out.println("Test B 6");
try{
Thread.sleep(100);
}
catch (InterruptedException e){
e.printStackTrace();
}
}
}
}
}