public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuilder builder = new StringBuilder();
        List<Integer> list = new ArrayList<>();
        while (scanner.hasNextLine()) {
            try {
                list.add(Integer.parseInt(scanner.nextLine()));
            } catch (Exception e) {
                break;
            }
        }
        System.out.println(solve2(list));
    }
Why Did you create this class? what does it do?
src/adventofcode/Interrupt_5.java