Skip to content
JavaLabs-ioPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

⏳ Countdown

A tiny Java CLI that counts down to zero.

What is Countdown?

Countdown gives you a tiny terminal countdown.

Run Countdown with a number of seconds, and it counts down to zero.

Wait.

Watch the numbers drop.

Then you're done.

That's it.

Example

$ java -cp target/classes io.javalabs.Main 5

5
4
3
2
1
🚀

Run it again:

$ java -cp target/classes io.javalabs.Main 10

10
9
8
7
6
5
4
3
2
1
🚀

And maybe:

$ java -cp target/classes io.javalabs.Main 3

3
2
1
🚀

You wait.

It reaches zero.

Then you continue.

How It Works

  1. Run Countdown with a number of seconds.
  2. Countdown prints the current number.
  3. Waits one second.
  4. Counts down.
  5. Reaches zero. 🚀

Tech Stack

  • Java 21
  • Thread.sleep()
  • CLI

Run

Compile:

mvn clean compile

Run:

java -cp target/classes io.javalabs.Main 10

Replace 10 with however many seconds you want.

Why I Built This

Countdown is a tiny experiment with time, delays, and the terminal.

Give it a number.

Wait.

Watch it count down.

Run it.

Wait for zero.

🚀

JavaLabs.io

Part of JavaLabs.io - a collection of small Java experiments built to turn random ideas into working code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages