I fixed a few mistakes in the code, removed an unnecessary statement, reformatted a bit, refactored the URL creation to avoid a now-deprecated method, and back ported the improvements I made in solutions back to practice.
Why?
To improve the correctness and readability of the code.
Checklist
I used the instructions in the README.md file to work through the practice version. It was successful, using OpenJDK 21 and Apache Maven 3.9.5. I compared the resulting files to the solution version and didn't see anything unexpected.
What was changed
I fixed a few mistakes in the code, removed an unnecessary statement, reformatted a bit, refactored the URL creation to avoid a now-deprecated method, and back ported the improvements I made in
solutions
back topractice
.Why?
To improve the correctness and readability of the code.
Checklist
I used the instructions in the README.md file to work through the practice version. It was successful, using OpenJDK 21 and Apache Maven 3.9.5. I compared the resulting files to the solution version and didn't see anything unexpected.