advent of code 2025 solutionsadvent of code 2025 solutions
HappyCoders Glasses

Advent of Code 2025 – Java 25 Solutions

Sven Woltmann
Sven Woltmann
Last update: December 5, 2025

This year I took part in Advent of Code again. In this article you’ll find my solutions. My goal is to implement the solutions as clearly as possible – not necessarily as “clever” or short as possible. I also tried to use as many features of the current Java 25 as possible – including preview features.

If you haven’t heard of Advent of Code: every day there’s a programming puzzle wrapped in a pre-Christmas story. Or rather: two puzzles each day – one that can be solved fairly quickly, and a second one that usually breaks your initial solution due to time or space complexity … forcing you to rethink everything from scratch.

You can find the solutions in this GitHub project: Advent of Code 2025 – Java 25 Solutions.

Here are my solutions for Advent of Code 2015 and Advent of Code 2022.

And now, let’s get started!

Advent of Code 2025 – Day 1 Java Solution