public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuilder builder = new StringBuilder();
        while (scanner.hasNextLine()) {
            String s = scanner.nextLine();
            if (s.equals("1"))
                break;
            builder.append(s);
        }
        System.out.println(solve2(builder));
    }
Why Did you create this class? what does it do?
src/adventofcode/StreamProcessing_9.java