@@ -0,0 +1,961 @@
+package com.javarush.task.task11.task1123;%0A%0Aimport java.lang.reflect.Array;%0Aimport java.util.Arrays;%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        int%5B%5D data = new int%5B%5D%7B1, 2, 3, 5, -2, -8, 0, 77, 5, 5%7D;%0A%0A        Pair%3CInteger, Integer%3E result = getMinimumAndMaximum(data);%0A%0A        System.out.println(%22Minimum is %22 + result.x);%0A        System.out.println(%22Maximum is %22 + result.y);%0A    %7D%0A%0A    public static Pair%3CInteger, Integer%3E getMinimumAndMaximum(int%5B%5D array) %7B%0A        if (array == null %7C%7C array.length == 0) %7B%0A            return new Pair%3CInteger, Integer%3E(null, null);%0A        %7D%0A%0A        //%D0%9D%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88%D0%B5 %D1%80%D0%B5%D1%88%D0%B5%D0%BD%D0%B8%D0%B5%0A        Arrays.sort(array);%0A        return new Pair%3CInteger, Integer%3E(array%5B0%5D, array%5Barray.length - 1%5D);%0A    %7D%0A%0A%0A    public static class Pair%3CX, Y%3E %7B%0A        public X x;%0A        public Y y;%0A%0A        public Pair(X x, Y y) %7B%0A            this.x = x;%0A            this.y = y;%0A        %7D%0A    %7D%0A%7D%0A

Complete task1123