37 exercises from the University of Helsinki's free Java course.
One folder, one exercise. The exercise is written at the top of its file in
src/main/java, with a link to the lesson that teaches it.
Two things, once.
- VS Code.
- Extension Pack for Java, from the Extensions tab inside VS Code.
Then open this folder: File → Open Folder.
Try 02 Ada Lovelace first. It prints one line.
-
Open
part01-Part01_02.AdaLovelace/src/main/java/AdaLovelace.java. -
Read the exercise at the top.
-
Add your line under
// Write your program here:System.out.println("Ada Lovelace");
-
Click Run, just above
public static void main. Your words appear at the bottom. -
Open the Testing tab, the flask on the left. Press play on
AdaLovelaceTest. Green means done. -
Save, commit, push.
Then do the rest in order.
Each push tests all 37 exercises. Your score is in the Actions tab.
A red ✗ means some are unfinished. That is normal until the end. Click a red one. It shows what your program printed, and what it should have.
01 Sandbox and 25 Check Your Indentation have no test, so they always pass. Sandbox is yours to play in.
Read the lesson linked at the top of the file. Then ask in the team chat.
Exercises and tests come from Java Programming I at the University of Helsinki, by the Agile Education Research group. Used under CC BY-NC-SA 4.0. See LICENSE.md.



