public static void main(String[] args) throws InterruptedException { Thread thread1 = new Thread(() -> System.out.println("thread1")); Thread thr