Pebble gives you one tiny question to think about.
Give Pebble a number between 1 and 17, and it randomly picks a question asking you to name that many things.
You don't type the answers.
You just think of them.
No scoring. No tracking. No right answers.
$ java -cp src/main/java Main 7
Pebble
7 flowers can you name.
You think of seven flowers.
That's it.
Run it again:
$ java -cp src/main/java Main 5
Pebble
5 things that are blue.
And maybe:
$ java -cp src/main/java Main 12
Pebble
12 things you remember from childhood.
- Give Pebble a number between 1 and 17.
- Pebble randomly selects a question.
- Pebble asks you to think of that many things.
- You answer in your head.
- That's the whole thing. 🌱
- Java 21
Random- CLI arguments
Compile:
javac src/main/java/Main.javaRun:
java -cp src/main/java Main 7Replace 7 with any number from 1–17.
Not everything needs to be useful.
Sometimes it's fun to make something tiny that gives you a reason to pause for a few seconds and think.
Pebble is just that.
Give it a number.
It gives you a question.
You give yourself the answers. 🪨
Part of JavaLabs.io — a collection of small Java experiments built to turn random ideas into working code.