Practical Preparation
Integrated Development Environment (IDE)
Going forward, I will be using IntelliJ IDEA by Jetbrains as my IDE of choice during demos. However, this is not the only choice available - some good alternatives include Eclipse, Netbeans, and Visual Studio Code. Of course, you are not forbidden to use a different code editor you're already familiar with, as long as you are able to write Java programs with it.
Installing Java JDK
Before installing the IDE of your choice, you will need to install the Java Development Kit (JDK) first.
Here are some video tutorials on how to install the JDK in your machine.
How to Install JDK for Amazon Corretto for Windows
How to Install JDK for Amazon Corretto for macOS
How to Install JDK for Amazon Corretto on Linux
Setting Up IntelliJ IDEA
As mentioned earlier, the program I will be using is IntelliJ IDEA. Here are some video tutorials on how to install IntelliJ IDEA in your machine.
How to Install IntelliJ in Windows
How to Install IntelliJ in macOS
How to Install IntelliJ in Linux
Upon installing IntelliJ IDEA in your machine, there are a few configurations you will need to carry out before starting to use IntelliJ IDEA. The following video tutorial will help you get to speed in setting up IntelliJ IDEA before starting to program.
IntelliJ Configuration on Mac, Linux and Windows
Testing IntelliJ IDEA
Create different Java files to contain each of the following code snippets. Ensure that the code runs properly.
Demo1
public class Demo1 {
public static void main(String[] args) {
System.out.println("Welcome ");
System.out.println("To ");
System.out.println("OOP Class");
}
}