public class Main implements Runnable {
public void run() {
System.out.println("Hello");
Thread.currentThread().sleep(100);
}
public static void main(String... args) throws InterruptedException {
new Thread(new Main()).start();
}
}
Login in to like
Login in to comment