Count the frequency of each character || Java
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n    public boolean makeEqual(String[] words) {\n        HashMap<Character,Integer>map=new HashMap<>();\n        for(int i=0;i<words.length;i++){\n            for(int j=0;j<words[i].length();j++){\n                map.put(words[i].charAt(j),map.getOrDefault(words[i].charAt(j),0)+1);\n            }\n        }\n        for(char ch:map.keySet()){\n            if(map.get(ch)%words.length!=0){\n                return false;\n            }\n        }\n        return true;\n    }\n}\n```
['Java']