get occurrences of string in list of object java 8 code example
Example: java get element occurrences in a list java
int occurrences = Collections.frequency(candles,highest);
int occurrences = Collections.frequency(candles,highest);