java easy undersand
\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int count5 = 0;\n        int count10 = 0;\n        for(int b : bills){\n          
```\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int count5 = 0;\n        int count10 = 0;\n        for(int b : bills){\n            if(b == 5){\n                count5++;\n            }else if(b == 10){\n                if(count5 == 0){\n                    return false;\n                }else{\n                    count5--;\n                    count10++;\n                }\n            }else{\n                if(count10 > 0 && count5 > 0){\n                    count5--;\n                    count10--;\n                    continue;\n                }else if(count5 >= 3){\n                    count5 -= 3;\n                    continue;\n                }else{\n                    return false;\n                }\n            }\n        }\n        return true;\n    }\n}\n```
[]