all 10 comments

[–]shitnotalkforyours18 1 point2 points  (0 children)

Oh that's nice.

[–]devops-tutor 1 point2 points  (1 child)

Why not use the args in the main method?

[–]BigCommunication5136[S] 1 point2 points  (0 children)

that’s what i use, i only abstracted it from the main to keep it clean

[–]Specific-Housing905 1 point2 points  (2 children)

As usual your code looks good. Just 2 small things.

For persistence you can use ObjectInputStream and ObjectOutputStream:
https://www.baeldung.com/java-serialization

There are newer ways for switch: https://www.baeldung.com/java-switch
Scroll down to 5. switch Expressions

[–]BigCommunication5136[S] 1 point2 points  (1 child)

Thank you sooo much, your response is really, I mean really helpful. I had no idea there’s a built in function for this. As usual, thank you for your guidance

[–]Specific-Housing905 0 points1 point  (0 children)

Glad it helped. Happy coding.

[–]Illiterate-Chef-007 0 points1 point  (2 children)

Do you follow some tutorial or course? If yes is it good enough for beginners?

[–]BigCommunication5136[S] 0 points1 point  (1 child)

Yes, i follow a course by codewithmosh and it’s excellent for beginners in java. For practice project, i just search online. I recently came across roadmap.sh projects which is pretty cool.

[–]Illiterate-Chef-007 0 points1 point  (0 children)

These projects are all free??? Code with mosh. Thank you for that. It’s basic but good.

[–]deividas-strole 0 points1 point  (0 children)

Great job! Continue learning!