Honestly, the whole “pass by value” thing in java programming language syntax got me good. I kept thinking objects were passed by reference, but nope—it’s the reference that’s passed by value. Mind-bending at first.
Also, not closing `Scanner` or other resources. Hello, memory leaks!
Use `try-with-resources`—it’s a game-changer.
Also, not closing `Scanner` or other resources. Hello, memory leaks!
Use `try-with-resources`—it’s a game-changer.
