Java Easiest Solution
Please Upvote\n\nclass Solution {\n    public int fillCups(int[] amount) {\n         Arrays.sort(amount);\n        int x=amount[0];\n         int y=amount[1];\n
# Please Upvote\n```\nclass Solution {\n    public int fillCups(int[] amount) {\n         Arrays.sort(amount);\n        int x=amount[0];\n         int y=amount[1];\n         int z=amount[2];\n        int sum=x+y+z;\n        if(x+y>z){return sum/2 +sum%2;}\n        if(x==0&&y==0){return z;}\n        else{return z;}\n    }\n}\n```
['Sorting', 'Java']