The roadmap
8 short lessons, one map.
Your first program
The main method, System.out.println, and how Java code is compiled and run.
Types and variables
int, double, boolean, char and String, and why every variable in Java has a declared type.
Conditions and loops
if/else, switch, and for and while loops to repeat work.
Methods
Parameters, return types, and splitting a program into small reusable pieces.
Classes and objects
Fields, constructors and methods, and creating objects with new.
Inheritance and interfaces
extends, implements and @Override, and when to share behavior between classes.
Collections
Arrays, ArrayList and HashMap, and looping over them with for-each.
Exceptions
try, catch and finally, and reading a stack trace to find what went wrong.
Try a question
Every lesson ends with a quick quiz.
Answer it here. In the app, a question you miss comes back in your review as a game until it sticks.
Quick quiz · Java
What does this print? int x = 7 / 2; System.out.println(x);
How Adept AI helps
Learn Java and keep what you learn.
Find-the-bug practice
Questions you miss come back as games, including find the bug, so you learn to spot mistakes in real code.
Built for your time
Tell Adept AI you have 15 or 30 minutes a day and the roadmap is split into lessons that fit.
Ask about any snippet
Not sure why == and equals() give different answers? Ask the companion about any code from your lessons.
Avoid these
Common beginner mistakes.
Comparing strings with ==
== checks whether two variables point to the same object. To compare the text inside two strings, use equals().
Forgetting integer division
7 / 2 is 3 in Java when both numbers are ints. Make one of them a double, like 7.0 / 2, to get 3.5.
Going past the end of an array
Indexes start at 0, so the last element of an array of length n is at n - 1. Going further throws an ArrayIndexOutOfBoundsException.
Skipping classes and objects
Java is built around classes. Rushing past constructors and objects makes everything after them harder to follow.
FAQ
Java: questions, answered.
Can I learn Java with Adept AI as a complete beginner?
Yes. Choose Beginner and the roadmap starts with your first program, types and variables. If you already know another language, choose a higher level and move faster.
Do I need a computer to learn Java with Adept AI?
You can learn the concepts and practice reading code on your phone. To write and run your own programs, you will also want a computer with the JDK and a code editor.
Is Java the same as JavaScript?
No. They share part of a name and some syntax, but they are different languages. Java is common in Android apps and large back-end systems; JavaScript runs in web browsers.
Is Adept AI free?
Adept AI is free to download. The free plan includes daily AI uses and two learning paths at a time. Adept AI Premium is an optional subscription with more AI uses and unlimited paths.
More roadmaps
Or learn something else.
In the app you can type any topic or add a PDF of your own notes.
Any topic. One map.
Free to download. Premium is optional.