https://github.com/amigoscode/java-bug-hunt
https://github.com/amigoscode/java-bug-hunt
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amigoscode/java-bug-hunt
- Owner: amigoscode
- Created: 2026-04-15T15:48:37.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-15T17:12:30.000Z (3 months ago)
- Last Synced: 2026-04-15T17:34:58.800Z (3 months ago)
- Language: Java
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Bug Hunt 🐛
150 intentionally buggy Java programs for students to hunt, diagnose, and fix.
## Structure
```
src/main/java/com/amigoscode/bughunt/
easy/bugNN/ (50 bugs)
medium/bugNN/ (50 bugs)
hard/bugNN/ (50 bugs)
src/test/java/com/amigoscode/bughunt/
easy/bugNN/ JUnit 5 + AssertJ + Mockito tests (currently FAILING)
```
## How to play
1. Pick a bug directory, e.g. `easy/bug01`
2. Read `HINT.md`
3. Run the tests for that bug:
```bash
mvn test -Dtest="Bug01*"
```
4. Fix the code in `src/main/...` until the tests pass
5. Compare your fix with `SOLUTION.md`
## Run all tests
```bash
mvn test
```
## Tiers
- **Easy (1–50)** — syntax & basic logic traps
- **Medium (51–100)** — API & OOP misuse
- **Hard (101–150)** — subtle semantics, generics, memory, numerics
## Requirements
- Java 21
- Maven 3.9+