Extracting objects from a list by quantity

I have ArrayList<Drink> drinks
The Drink class consists of 2 items, name and amount.

If I have many instances of a Drink class populated in ArrayList<Drink, for example:

“coke”, “30”

“fanta”, “10”

“coke”, “5”

“sprite”, “1”

“coke”, “10”

I want now to have only one list, that combines those elements and output to be like this:

“coke”, “45”

“fanta”, “10”

“sprite”, “1”

How can I achieve this. Also I don’t know what drinks the list will contain, it may be some other. Just want to combine them by amount and without repetitions?
Thanks.