Class Counter

    • Method Detail

      • of

        public static Map<CharSequence,​Integer> of​(CharSequence[] tokens)
        It counts how many times each element provided occurred in an array and returns a dict with the element as key and the count as value.
        Parameters:
        tokens - array of tokens
        Returns:
        dict, where the elements are key, and the count the value