Learn Java in your browser
You learn Java by writing Java.
95 tasks, from your first println to streams. Tests check your code right away, and an AI tutor helps you along without giving away the answer.
The first 2 chapters are free, no payment details needed.
public static int monthsToGoal( double start, double perMonth, double goal) { int months = 0; while (start < goal) { start += perMonth; months++; } return months;}- monthsToGoal(0, 100, 1000) returns 10
- monthsToGoal(500, 100, 1000) returns 5
- monthsToGoal(0, 30, 100) returns 4
How it works
- Step 1
Read the task
Each task briefly explains what it’s about, with an example and starter code.
- Step 2
Write code
In an editor right in your browser, with autocomplete and formatting. Nothing to install.
- Step 3
Check it
Tests run right away and show you exactly which case isn’t right yet.
Stuck? Ask the tutor.
The AI tutor knows the task, your code and the test results. It gives hints in small steps so you find the solution yourself.
12 chapters, 95 tasks
Built like an introduction to programming, each chapter builds on the one before.
- Chapter 1Input and Output8Free
- Chapter 2Conditions8Free
- Chapter 3Loops8Pro
- Chapter 4Arrays8Pro
- Chapter 5Strings8Pro
- Chapter 6Methods and Recursion8Pro
- Chapter 7Classes and Objects7Pro
- Chapter 8Lists and Maps8Pro
- Chapter 9Inheritance and Interfaces8Pro
- Chapter 10Exceptions and Enums8Pro
- Chapter 11Lambdas and Streams8Pro
- Chapter 12Generics and Modern Java8Pro
Pricing
Free
€0- The tasks of the first 2 chapters, with tests
- Your progress is saved
- 5 questions to the AI tutor per day
Pro
€5/month- All tasks from all chapters
- 30 questions to the AI tutor per day
- Cancel any month
Your first task takes five minutes.
Create an account, open a task, get started. Nothing to install, no payment details.
Start for free