java solution using hashmap
\nclass Solution {\n    public boolean makeEqual(String[] words) {\n        //only frequency matters\n        HashMap<Character,Integer> map=new HashMap<>();\n 
```\nclass Solution {\n    public boolean makeEqual(String[] words) {\n        //only frequency matters\n        HashMap<Character,Integer> map=new HashMap<>();\n        for(int i=0;i<words.length;i++)\n        {\n            for(int j=0;j<words[i].length();j++)\n            {\n                map.put(words[i].charAt(j),map.getOrDefault(words[i].charAt(j),0)+1);\n            }\n        }\n      for(Character key : map.keySet())\n      {\n            \n            int freq = map.get(key);\n            if(freq % words.length!=0)\n            {\n                return false;\n            }\n        }\n        \n        return true;\n    }\n}\n```
['Java']