@@ -0,0 +1,1354 @@
+import java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.util.Arrays;%0A%0A// https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array/problem%0Apublic class MinimumAbsoluteDifferenceInAnArray %7B%0A%0A  private static final String SPACE = %22 %22;%0A%0A  private static long%5B%5D readArray() throws IOException %7B%0A    try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) %7B%0A      reader.readLine(); // Skip this line.%0A      String%5B%5D split = reader.readLine().split(SPACE);%0A      return Arrays.stream(split).mapToLong(Long::parseLong).toArray();%0A    %7D%0A  %7D%0A%0A  private static long getMinAbsoluteDifference(long%5B%5D numbers) %7B%0A    Arrays.sort(numbers);%0A    long minDifference = Long.MAX_VALUE;%0A    for (int i = 0; i %3C numbers.length; i++) %7B%0A      int nextIndex = i + 1;%0A      if (nextIndex %3C numbers.length) %7B%0A        long currentNumber = numbers%5Bi%5D;%0A        long nextNumber = numbers%5BnextIndex%5D;%0A        long difference = Math.abs(currentNumber - nextNumber);%0A        minDifference = (difference %3C minDifference) ? difference: minDifference;%0A      %7D%0A    %7D%0A    return minDifference;%0A  %7D%0A%0A  public static void main(String%5B%5D args) throws IOException %7B%0A    long%5B%5D array = readArray();%0A    long minDifference = getMinAbsoluteDifference(array);%0A    System.out.println(minDifference);%0A  %7D%0A%7D%0A

Add solution for Minimum absolute difference in an array problem.