✅ Java Solution
CODE\nJava []\npublic double minimumAverage(int[] nums) {\n\tArrays.sort(nums);\n\n\tdouble res = -1;\n\tint i=0, j=nums.length-1;\n\twhile(i < j){\n\t\tdouble 
## **CODE**\n```Java []\npublic double minimumAverage(int[] nums) {\n\tArrays.sort(nums);\n\n\tdouble res = -1;\n\tint i=0, j=nums.length-1;\n\twhile(i < j){\n\t\tdouble curr = (nums[i++]+nums[j--])*1d / 2;\n\t\tif(res == -1 || res > curr) res = curr;\n\t}\n\treturn res;\n}\n```
['Java']