Easy program in java
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(NLogN)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(N)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution \n{\n    public double minimumAverage(int[] n) \n    {\n        int l=n.length;\n        double avg[]=new double[l/2];\n        Arrays.sort(n);\n        for(int i=0;i<(l/2);i++)\n        {\n            double m=(n[i]+n[l-i-1])/2.0;//calculating mean\n            avg[i]=m;\n        }\n        Arrays.sort(avg);\n        return avg[0];\n    }\n}\n```
['Java']