Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.02 KB

README.md

File metadata and controls

17 lines (13 loc) · 1.02 KB

Advent of Code 2021 in Java Java

This is my try on the Advent of code of 2021 challanges with Java!

I managed to complete 10 Days and got a total of 20 stars.

Structure

  • Main.java: in this file you can find the main, that calls the days code. to call the right code, you need to add the right number here:
  Days day = new DayX(reader.readInput("test.txt"));//exchange X for the number of the day
  • days: the code for each day will be in the days folder as a .java file. I used Days.java to create an Interface, that I then could implement every day to be faster in writing the code for every day.
  • Inputs: all my input data for each day is saved the inputs folder as a .txt file. I also have a test.txt file, that I use for the example input of each days puzzle.
  • Reader.java: This class helps to read the input data.