@@ -0,0 +1,418 @@
+import java.util.ArrayList;%0D%0A%0D%0Apublic class UniqueArray %7B%0D%0A%0D%0A  public static int%5B%5D unique(int%5B%5D integers) %7B%0D%0A  if(integers.length%3C2) return integers;%0D%0A  ArrayList%3CInteger%3E list = new ArrayList%3CInteger%3E();%0D%0A%0D%0A  for(Integer i:integers)%0D%0A    if(!list.contains(i))%0D%0A      list.add(i);%0D%0A%0D%0A   int%5B%5D ints = new int%5Blist.size()%5D;%0D%0A   int i = 0;%0D%0A%0D%0A   for (Integer n : list)%0D%0A       ints%5Bi++%5D = n;%0D%0A%0D%0A    return ints;%0D%0A  %7D%0D%0A%7D%0D%0A

return Arrays.stream(integers).distinct().toArray();