Java from Scratch
Java 21 from your first program to threads: types, strings, conditions and loops, arrays, methods and recursion, classes and OOP (inheritance, polymorphism, interfaces, enums, inner and anonymous classes), dates, exceptions, files and I/O streams, collections (List, Set, Map and their implementations), generics, annotations, regular expressions, multithreading, lambdas and the Stream API. The code is checked on the server.
Log in to solve tasks and save your progress.
1. Language basics
1
Syntax
10 XP
2
Output
10 XP
3
Comments
10 XP
4
Variables
10 XP
5
Warm-up: a number from the input warm-up
5 XP
6
Data types
10 XP
7
Type casting
10 XP
8
Warm-up: quotient and remainder warm-up
5 XP
9
Operators
10 XP
10
Strings
10 XP
11
Math
10 XP
12
Boolean
10 XP
13
Warm-up: greater than ten? warm-up
5 XP
14
if / else
10 XP
15
switch
10 XP
16
The while loop
10 XP
17
Warm-up: from 1 to n warm-up
5 XP
18
The for loop
10 XP
19
break and continue
10 XP
20
Warm-up: sum of numbers warm-up
5 XP
21
Arrays
10 XP
2. Methods
3. Classes and OOP
1
OOP
5 XP
2
Warm-up: a hero warm-up
5 XP
3
Classes and objects
10 XP
4
Class attributes
10 XP
5
Class methods
10 XP
6
A task on classes
10 XP
7
Constructors
10 XP
8
The this keyword
10 XP
9
Modifiers
10 XP
10
Encapsulation
10 XP
11
Packages and the API
10 XP
12
Inheritance
10 XP
13
Polymorphism
10 XP
14
The super keyword
10 XP
15
Inner classes
10 XP
16
Abstraction
10 XP
17
Interfaces
10 XP
18
Anonymous classes
10 XP
19
Enumerations (enum)
10 XP
20
User input
10 XP
21
Date and time
10 XP
4. Errors and exceptions
5. Working with files
6. I/O streams
7. Data structures
1
Data structures
5 XP
2
Warm-up: ArrayList warm-up
5 XP
3
Collections
10 XP
4
List
10 XP
5
ArrayList
10 XP
6
LinkedList
10 XP
7
Sorting lists
10 XP
8
Set
10 XP
9
HashSet
10 XP
10
TreeSet
10 XP
11
LinkedHashSet
10 XP
12
Map
10 XP
13
HashMap
10 XP
14
TreeMap
10 XP
15
LinkedHashMap
10 XP
16
Iterator
10 XP
17
Algorithms
10 XP
8. Advanced Java
Tasks unlock in order: solve the current one to unlock the next. Warm-ups can be skipped.