Learn Mode course · Stable
Learn Java Inside Your Editor
TL;DR
Contral's Java course is a structured path through core Java inside VS Code, Cursor and other editors, or the Contral IDE: 50 topics in 4 categories, from your first program to the Collections Framework, with a Mega Exam at the end of each category. Your code compiles and runs with the JDK on your computer, Defense Mode checks you understood each topic, and the Basics category is free.
Stable. Java is Learn Mode's stable course. Python, JavaScript, TypeScript and Go are in beta; see the roadmap.
The Java course at a glance
- Curriculum
- 50 topics in 4 categories
- Exams
- 4 Mega Exams, one per category
- Free plan
- Basics: 13 topics + Mega Exam
- You need
- A JDK, version 11 or later
Java curriculum: 4 categories
Topics unlock in order, and each category ends in a Mega Exam: one larger program that uses everything in the category. The course sticks to the JDK, with no frameworks or outside libraries.
1. Basics
Free13 topics, then a category exam
- Your first Java program
- Output + comments
- Variables, names + final
- Data types (int, double, boolean, char, String) + var
- Type casting
- Operators
- Strings
- Math
- Booleans + if/else
- Switch
- Input with Scanner
- Loops (while, do/while, for, for-each)
- Break + continue
Basics Mega Exam: Command-Line Store: an interactive store that runs in a loop: constants and typed variables, a Scanner menu, a switch, purchases with casting and Math, and running sales stats.
2. Intermediate
Pro8 topics, then a category exam
- Arrays (1D + 2D)
- Methods: parameters, return, overloading, scope, recursion
- OOP basics: classes, objects, fields, constructors, this
- Encapsulation + access modifiers
- Imports, the Java API, user input + dates
- Errors, debugging + exceptions
- File handling: create, write, read, delete
- I/O streams (FileInputStream, FileOutputStream, BufferedReader/Writer)
Intermediate Mega Exam: Employee Payroll: an encapsulated Employee class with validation, overloaded pay methods, a payroll processor over arrays, exceptions for bad input, and a dated report saved to a file.
3. Advanced
Pro13 topics, then a category exam
- Inheritance
- Polymorphism + super
- Inner classes
- Abstraction, interfaces + anonymous classes
- Enums
- Wrapper classes
- Generics
- Annotations
- Regular expressions
- Threads
- Lambda expressions
- Advanced sorting
- Projects (practice pack)
Advanced Mega Exam: Task Scheduler: an event-driven task scheduler with an enum, interfaces and an abstract task hierarchy, a generic scheduler sorted with lambdas, and input validated with regex.
4. Data Structures
Pro16 topics, then a category exam
- Data structures overview
- Collections overview
- List interface
- ArrayList
- LinkedList
- List sorting
- Set interface
- HashSet
- TreeSet
- LinkedHashSet
- Map interface
- HashMap
- TreeMap
- LinkedHashMap
- Iterator
- Algorithms on collections
Data Structures Mega Exam: Social Network: a social network analyzer driven by a command loop: users in an ArrayList, friendships as a HashMap of HashSets, activity feeds in LinkedLists and follower counts in a TreeMap.
How a Java topic works
- 1Theory
The concept, explained.
- 2Observe
Working example code to read.
- 3Do
You write code in a practice file in your workspace.
- 4Debug
You fix broken code.
- 5Explain
You explain the code in your own words. Defense Mode grades the answer.
- 6Boss
A final challenge for the topic.
Your code runs for real. Learn Mode finds a JDK 11+ on your computer (javac, and the java launcher next to it), compiles and runs your code, and checks its output. If the tool is missing or too old, a banner shows How to install and Re-check. You can keep going in the meantime: your code is checked without running it and the result is marked Checked without running.
Defense Mode is part of every topic. It grades your Explain answers, runs a short concept check when you complete a topic, and Defend this on Do, Debug and Boss steps starts a round on your own practice code. See Defense Mode.
Topics unlock in order, and each category ends in an exam. Progress is kept separately for each language, so switching courses never resets anything.
What's free and what's Pro
Free plan
The Basics category: 13 topics, from your first program to loops, plus the Command-Line Store Mega Exam.
Topics you've already started or finished stay open on the Free plan.
Pro, Pro+, Teams and all AppSumo tiers
Every category: Intermediate, Advanced and Data Structures, and all four Mega Exams.
Where you can take the course
Contral extension
Works in VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium. Run Contral: Start Learning a Language from the Command Palette, or type /learn in the Contral chat.
Contral IDE
A desktop editor with Contral built in, in public beta. Use the Build/Learn toggle at the top of the Contral panel, or type /learn.
Already working on a Java project with an AI agent? Build Mode and teaching cards work in any Java project, not just the course. For a longer look at learning Java this way, read how to learn Java in 2026.
Start the Java Basics for free
Install the extension or the desktop IDE, pick Java in Learn Mode, and start at topic 1. Upgrade to Pro when you want the rest of the course.
Java course FAQ
What does the Contral Java course cover?
50 topics in four categories: Basics, Intermediate, Advanced and Data Structures, each ending in a Mega Exam. It goes from your first program, variables, strings and loops through arrays, methods, OOP, exceptions and file I/O, then inheritance, interfaces, enums, generics, regex, threads and lambdas, and finishes with the Collections Framework: lists, sets, maps, iterators and algorithms.
Does it cover Spring Boot, the Streams API or Android?
No. The course teaches core Java with the JDK only: no frameworks or outside libraries. Lambdas and threads have their own topics, but there are no topics on the Streams API, CompletableFuture, Spring Boot or Android. Once you know the core language, Build Mode can help you work on a Spring or Android project of your own and explain each change.
Is the Java course free?
The Basics category is free on the Free plan: 13 topics plus the Basics Mega Exam. Topics you've already started stay open. Pro, Pro+, Teams and all AppSumo tiers include every category and all four Mega Exams. On the Free plan, AI explanations inside lessons count toward your 5 code explanations per day.
Which Java version do I need?
A JDK, version 11 or later. Contral looks for javac and runs your code with the java launcher next to it. If the JDK is missing or too old, Learn Mode shows How to install and Re-check, and until then your code is checked without running it and marked Checked without running.
Does my Java code actually run?
Yes. Learn Mode compiles and runs your code with the JDK on your computer and checks the output. Practice files are created in your workspace under .contral/learn/.
Where can I take the course?
In the Contral extension for VS Code, Cursor, Windsurf, Antigravity, Kilo Code and VSCodium, and in the Contral IDE desktop app. Run Contral: Start Learning a Language, or type /learn, and pick Java.
How does Contral check that I understood a topic?
Defense Mode is part of every topic. It grades your answer on the Explain step, runs a short concept check when you complete the topic, and lets you start a Defend this round on your own practice code.