[Java] Easy 100% solution
java\nclass Solution {\n    public int fillCups(final int[] amount) {\n        int first = 0, second = 0, third = 0;\n\n        if(amount[0] >= amount[1] && amo
```java\nclass Solution {\n    public int fillCups(final int[] amount) {\n        int first = 0, second = 0, third = 0;\n\n        if(amount[0] >= amount[1] && amount[0] >= amount[2]) {\n            first = amount[0];\n\n            if(amount[1] >= amount[2]) {\n                second = amount[1];\n                third = amount[2];\n            } else {\n                second = amount[2];\n                third = amount[1];\n            }\n        } else if(amount[1] >= amount[0] && amount[1] >= amount[2]) {\n            first = amount[1];\n\n            if(amount[0] >= amount[2]) {\n                second = amount[0];\n                third = amount[2];\n            } else {\n                second = amount[2];\n                third = amount[0];\n            }\n        } else {\n            first = amount[2];\n\n            if(amount[0] >= amount[1]) {\n                second = amount[0];\n                third = amount[1];\n            } else {\n                second = amount[1];\n                third = amount[0];\n            }\n        }\n\n        return Math.max(first, (first + second + third + 1) / 2);\n    }\n}\n```
['Java']