@@ -0,0 +1,795 @@
+import java.util.Scanner;%0A%0A/**%0A * Created by kdonohue on 1/30/17.%0A */%0Apublic class Hourglass %7B%0A%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int arr%5B%5D%5B%5D = new int%5B6%5D%5B6%5D;%0A        for (int i = 0; i %3C 6; i++) %7B%0A            for (int j = 0; j %3C 6; j++) %7B%0A                arr%5Bi%5D%5Bj%5D = in.nextInt();%0A            %7D%0A        %7D%0A%0A        int maxSum = Integer.MIN_VALUE;%0A        for (int i = 0; i %3C 4; i++) %7B%0A            for (int j = 0; j %3C 4; j++) %7B%0A                int sum = arr%5Bi%5D%5Bj%5D + arr%5Bi%5D%5Bj + 1%5D + arr%5Bi%5D%5Bj + 2%5D +%0A                    arr%5Bi + 1%5D%5Bj + 1%5D +%0A                    arr%5Bi + 2%5D%5Bj%5D + arr%5Bi + 2%5D%5Bj + 1%5D + arr%5Bi + 2%5D%5Bj + 2%5D;%0A                maxSum = Math.max(sum, maxSum);%0A            %7D%0A        %7D%0A%0A        System.out.println(maxSum);%0A%0A    %7D%0A%7D%0A%0A

Add hourglass