Hello Java & main()
Compile and run your first Java program.
20 Sessions · Zero to Hero
From Zero to Hero
Beginner Java — classes, main, types, control flow, and methods. Twenty sessions from zero to confident practice.
Review the session-by-session curriculum below. Sign in and enroll to open interactive slides, homework, and exams.
Compile and run your first Java program.
int, double, boolean, String.
Read from the keyboard.
Arithmetic and Math helpers.
if / else if / else.
for, while, do-while.
Reusable static methods.
Fixed-size lists.
Work with text.
Console app end-to-end.
Grow collections easily with ArrayList.
Create your own types with fields and behavior.
Initialize objects safely and hide internal data.
Share common behavior through parent/child classes.
Define what a class can do without saying how.
Catch and throw errors so programs fail politely.
Read and write text files for real persistence.
Use HashMap and HashSet for lookups and uniqueness.
Organize classes into packages like a real project.
Ship a console app using classes, collections, and files.