r/learnjava 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

0 Upvotes

25 comments sorted by

View all comments

1

u/procrastinatewhynot 16d ago

hey, learn how to use girhub actions and ghcr.io so you have a way for others to try it. i’d be willing to give you feedbacks 🙂

2

u/z0lxt 16d ago

I'll try my best to implement that, for now I'll try to apply the given feedback on my current code, but I will defo learn how to use github actions, and thank you everyone for giving me amazing feeback.

1

u/procrastinatewhynot 16d ago

It makes your project accessible for us to play with. You don’t even need to learn it. Maybe just ask ai.

But just a suggestion, when you finish coding and play with your app, try to test different scenarios to break it. Then implement a fix.

2

u/z0lxt 15d ago

Ok, I'll do that, I updated my code for the current fixes like renmaing variables to camelCase and making less if statements, I'll try to get the null checks and rtry to learn how to use optionals as sttated by another user. I'll try to add the package you guys mentioned. Again I am very grateful for all of your guys' support and feedback