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:
File → Open Folder→ pick (or create) a folder for your practice code.- Create a file ending in
.java, for exampleHello.java. - The Java extension shows a ▶️ Run button above
public static void mainonce you save the file. - Use the built-in terminal (
Ctrl+`) to typejavac/javacommands 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.