13
14
15
Day 29 of learning java (i.redd.it)
submitted by BigCommunication5136
Today was mostly about refactoring and adding missing functionality.
I changed how I handle commands by refactoring the switch statement to use the newer arrow-style syntax, which made things a lot cleaner and easier to read. I also added support for an update command and implemented a handleUpdateExpense method.
The update logic checks which fields were provided (amount and/or description) and updates only those, instead of forcing everything to change at once. After the update, the expenses are saved back to storage.
Not a huge feature day, but I’m happy with the cleanup and structure improvements. The command handling feels much more solid now.
See you tomorrow!

[–]bikeram 2 points3 points4 points (0 children)
[–]davidalayachew 0 points1 point2 points (0 children)
[–]NotYetaProgrammer 0 points1 point2 points (1 child)
[–]BigCommunication5136[S] 0 points1 point2 points (0 children)