@@ -0,0 +1,727 @@
+package leetcode;%0A%0Apublic class Task1550 %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(new Task1550().threeConsecutiveOdds(new int%5B%5D%7B2, 6, 4, 1%7D));%0A        System.out.println(new Task1550().threeConsecutiveOdds(new int%5B%5D%7B1, 2, 34, 3, 4, 5, 7, 23, 12%7D));%0A    %7D%0A%0A    public boolean threeConsecutiveOdds(int%5B%5D arr) %7B%0A        for (int i = 0; i %3C arr.length - 2; i++) %7B%0A            int first = arr%5Bi%5D;%0A            int second = arr%5Bi + 1%5D;%0A            int third = arr%5Bi + 2%5D;%0A            if (isOdd(first) && isOdd(second) && isOdd(third)) %7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A    private boolean isOdd(int number) %7B%0A        return number %25 2 != 0;%0A    %7D%0A%0A%7D%0A

Add Task1550