This is how I learn. You may not like it but I learn best with examples and trying things not just being taught something...Sorry lol
If you aren't already, please use an IDE - I highly recommend
IntelliJ IDEA, but eclipse will work too. If something isn't working right, you need to put a breakpoint in your code, then step through it line by line. That will usually give you insight onto why X is happening. As you gain more experience, you start gaining the ability to simply read the code and run it through your mind's debugger, which is never 100% accurate, but still works pretty well
