It counts how many times each element provided occurred in an array and returns a map with the element as key and the count as value.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Map | Returns: a map, where the elements are key, and the count the value.array of tokens. tokens)Counts how many times each element provided occurred in an array and returns a map with the element as key and the count as value. |
| Counter | back to summary |
|---|---|
| private Counter() No instance needed. | |
| of | back to summary |
|---|---|
| public static Map Counts how many times each element provided occurred in an array and returns a map with the element as key and the count as value.
| |