@@ -0,0 +1,864 @@
+package aoc19;%0A%0Apublic class Numbers %7B%0A    public static void main(String%5B%5D args) %7B%0A        int lowerBound = 125730;%0A        int uppperBound = 579381;%0A        int count = 0;%0A        for (int i = lowerBound; i %3C= uppperBound; i++) %7B%0A            if (passesTest(i)) %7B%0A                count++;%0A            %7D%0A%0A        %7D%0A        System.out.println(count);%0A    %7D%0A%0A    private static boolean passesTest(int number) %7B%0A        boolean twoAdjSame = false;%0A        char%5B%5D chars = (number + %22%22).toCharArray();%0A        for (int i = 0; i %3C (chars.length - 1); i++) %7B%0A            if (chars%5Bi%5D == chars%5Bi + 1%5D) %7B%0A                twoAdjSame = true;%0A            %7D%0A            if (chars%5Bi%5D %3E chars%5Bi + 1%5D) %7B%0A                return false;%0A            %7D%0A        %7D%0A        if (twoAdjSame) %7B%0A            System.out.println(number + %22 valid%22);%0A        %7D%0A        return twoAdjSame;%0A    %7D%0A%7D%0A

day 4 1