Java program that countdown in ten second and then print Happy New Year. Thread class method s in java Multithreading in java Write a java program that countdown in ten second and then print Happy New Year? class ThreadDemo extends Thread { public static void main(String a[])throws InterruptedException { for(int time=10;time>0;--time){ System.out.println("second @:"+time); Thread.sleep(1000); } System.out.println("HAPPY NEW YEAR"); } } CMD OUTPUT watching onscreen recording video👇
بسم الله الرحمن الرحيم
This free site provides basic Java theory notes and simple programs for beginners. It is the best way to learn Java programming for free. best way to learn Java programming for free, best Java notes for beginners, and simple Java programs for practice for beginners.