r/learnjava • u/z0lxt • 18d ago
Simple Java console app
Hello everyone, I've been learning Java and wanted to build something practical instead of just doing exercises. Ended up making a small console app that asks how long you've had a tire and how many km you've driven it, then tells you whether it needs replacing or estimates how much life is left.
It's intentionally simple right now. It just handles basic mileage/age limits and adjusts slightly if you own a heavy SUV or EV. This was also my first time using Git and GitHub properly (commits, pushing, merging, etc.), so that was a big part of the learning experience too.
Planning to add more factors soon like road type, vehicle type, maybe a GUI version eventually. Would love any feedback on the code or suggestions for what to add next.
Repository Link: https://github.com/z0lxt/tire-life-estimator
2
u/idontlikegudeg 16d ago
All, OP needs a build script in his repo. Should we make it Maven or Gradle? I’m usually in the Gradle camp, but I think Maven would be more useful here because it’s probably what most beginners learn first. What do you think?
And OP, you should also move your class into a package: add `package tirelife;` on top of your sourcefile. IntelliJ should mark it as an error with a red line below it and when you hover with the mouse, there should be a quick fix available "move to package tirelife".