Sign up for Free !!
World's first open source developer community with
Ticketing System
I am looking for a while loop solution ...
You can try this way
public class loops { public static void main(String args[]) throws InterruptedException { int countdown = 1; while (countdown < 10){ System.out.println(countdown); ++countdown; Thread.sleep(1000); } } }
Please Login/Register to write your answer !!!
You can try this way