Easy Java Code
class Solution {
public double minimumAverage(int[] nums) {
int n=nums.length;
Arrays.sort(nums);}
class Solution {
    public double minimumAverage(int[] nums) {
        int n=nums.length;
       Arrays.sort(nums);
       
        double a[]=new double[n/2];
        int l=0,r=n-1;
        for(int i=0;i<n/2;i++){
            a[i]=(nums[l]+nums[r])/2.0;
            l++;
            r--;
        }
        double min=Double.MAX_VALUE;
        for(int i=0;i<a.length;i++){
          min=Math.min(a[i],min);
        }
        return min;
    }
}
['Java']