@@ -0,0 +1,919 @@
+//https://www.hackerrank.com/challenges/diagonal-difference%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A  public static void main(String%5B%5D args) throws IOException %7B%0A    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A    %0A    //Get size of matrix%0A    final int N = Integer.parseInt(br.readLine());%0A      %0A    //Get matrix%0A    final int%5B%5D%5B%5D matrix = new int%5BN%5D%5BN%5D;%0A    for(int y = 0; y %3C N; ++y)%7B%0A        String%5B%5D row = br.readLine().split(%22 %22);%0A        for(int x = 0; x %3C N; ++x)%7B%0A            matrix%5By%5D%5Bx%5D = Integer.parseInt(row%5Bx%5D);%0A        %7D%0A    %7D%0A    %0A    //Initialize difference%0A    long diff = 0;%0A    %0A    //Get difference of sum of diagonals%0A    for(int y = 0, x = N; y %3C N; ++y)%7B%0A        diff += matrix%5By%5D%5By%5D - matrix%5By%5D%5B--x%5D;%0A    %7D%0A    %0A    //Convert to absolute difference%0A    diff = (diff %3C 0) ? -diff : diff;%0A      %0A    //Print absolute difference%0A    System.out.print(diff);%0A  %7D%0A%7D%0A

Create diagonal-difference.java