Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { int countdown = 3; while (countdown > 0) { System.out.println(countdown); countdown--; } System.out.println("Happy New Year!!"); } }
3
2
1
Happy New Year!!