Using IntelliJ CE 2021.3 and JDK17, here is a warming-up example for how to program a simple project that scans and prints in the console.
To help you in your learning, consider getting an inexpensive
paper reference book like O'Reilly's "Java Pocket Guide".
Your Library also likely has eBooks on Java. At YorkU, students have access to
1. "Beginning Java 8 Fundamentals" by Kishori Sharan (https://bit.ly/332uxav)
2. "Java 7 for Absolute Beginners" by Jay Bryant (https://bit.ly/3sWnfQP)
3. "Java Programming for Engineers" by Julio Sanchez (https://bit.ly/3FVSuPo)
4. "A Little Java, A Few Patterns" by Bibby et al. (https://bit.ly/3qPTvCr)