Your number one resource will be Think Java book. Download it now.
First nine chapters are what you should focus on initially.
However, without practice, what you read is of little use. Going through many practice problem is a great way to solidify your understanding of how the code should work. The practice problems suggested below are designed to have low overhead: short problem statements (like an exam), nothing to install, immediate feedback in the browser, and there’s lots of them to build up those skills.
Head to https://codingbat.com/java for some practice. Try to complete the exercises in this order:
- https://codingbat.com/java/Warmup-1
- https://codingbat.com/java/Warmup-2
- https://codingbat.com/java/String-1
- https://codingbat.com/java/Array-1
- https://codingbat.com/java/Logic-1
- https://codingbat.com/java/Logic-2
- https://codingbat.com/java/String-2
- https://codingbat.com/java/String-3
- https://codingbat.com/java/Array-2
- https://codingbat.com/java/Array-3
Go ahead! Click on a problem, type some code into the method body, hit the Go button, and work it from there until you get the green check mark. Keep the “Think Java” book handy for any reference to syntax.
https://www.bluej.org/ is a simple development environment you can use to continue your practice.
Another great resource is https://inventwithpython.com/, a collection of great books on Python. You can start with this excellent book on creating simple games. Though the book refers to Python, the games can be written in Java too and will serve you with simple but excellent practice options!