Hello, Tim, I believe you did a great job and solve all coding exercises from your homework.
But if you don't mind, I'd like to share with you my own solutions to the same tasks.
I will leave links to the source code attached to this lesson.
Take your time to look through my solutions and left comments in the source code to make you understand
the most complicated pieces of code.
Also, in some solutions you can find something like this solution with stream API.
That is because the first solution, which I wrote for some tasks, was written with the help of stream
API.
After that, I remembered that we didn't learn stream API with you so far, and I wrote solution with
knowledge that you have right now.
Indeed, writing code with stream API takes less code to achieve the same goal.
Here is the solution without stream API v3.
And here is the solution with stream API.
Take this as motivation that soon will learn stream API and you will be able to write methods like this.
Feel free to ask questions and comment section regarding homework in case something is still unclear.
Thanks a lot for your attention and see you in the next lesson.