Course map
Stage 1: Foundation
Stage 2: Intermediate
Stage 3: Advanced
Stage 4: DSA in Java
Stage 5: Specialization

Part 01 / Topic 3 of 7

An editor or IDE

You can write Java in any text editor, but an IDE (Integrated Development Environment) adds auto-complete, error hints, and a one-click way to run your code. Pick one:

Real-world example: you want to see a typo underlined in red before you even compile.

Option Setup
VS Code (free, lighter) Install from code.visualstudio.com, then open Extensions (Cmd+Shift+X / Ctrl+Shift+X) and install "Extension Pack for Java" (by Microsoft).
IntelliJ IDEA Community (free, Java-focused) Install from jetbrains.com/idea. It detects an installed JDK automatically, or offers to download one.

Either one is fine for this whole course. Steps for VS Code:

  1. File → Open Folder → pick (or create) a folder for your practice code.
  2. Create a file ending in .java, for example Hello.java.
  3. The Java extension shows a ▶️ Run button above public static void main once you save the file.
  4. Use the built-in terminal (Ctrl+`) to type javac/java commands by hand too — this course always shows you that command, even when your editor also has a Run button, because the command is what actually happens.

Done here? The practice set for Part 1 — including the solutions — is on the part page.

Search the guide