When first approaching Java, the correct Java Development Kit (JDK) needs to be downloaded from a trusted source. There are two primary JDK available. One is provided by Oracle, who owns and manages Java, and the other is an open-source version called OpenJDK. Due to recent licensing changes from Oracle, please ensure that you will comply with the license before using it. The license details can be found at https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html. For personal education, either edition should be fine. The following installation video on youtube.com provides information on the download and installation of OpenJDK:
https://www.youtube.com/watch?v=lvGFOeMWt98
My preference for an IDE for development is Microsoft Visual Studio Code (VSCode). VS Code is a free, lightweight Integrated Development Environment (IDE) provided by Microsoft. VS Code is available at https://code.visualstudio.com/. For a tutorial for installing VS code:
https://www.youtube.com/watch?v=MlIzFUI1QGA
Once VS Code is installed on your computer, the Java Pack installer, located at https://code.visualstudio.com/docs/languages/java, needs to be added to VS Code. For a tutorial on the installation of the Java Pack for VS Code, please see the link below: