[Java] HashMap
\n\tpublic boolean isAnagram(String s, String t) {\n        if (s.length() != t.length()) {\n            return false;\n        }\n        if (s == null && t ==
\n\tpublic boolean isAnagram(String s, String t) {\n        if (s.length() != t.length()) {\n            return false;\n        }\n        if (s == null && t == null) {\n            return true;\n        }\n        Map<Character, Integer> maps = new HashMap<>();\n        for (char c : s.toCharArray()) {\n            maps.put(c, maps.getOrDefault(c, 0) + 1);\n        }\n        Map<Character, Integer> mapt = new HashMap<>();\n        for (char c : t.toCharArray()) {\n            mapt.put(c, mapt.getOrDefault(c, 0) + 1);\n        }\n        \n        if (maps.equals(mapt)) {\n            return true;\n        }\n        else {\n            return false;\n        }\n    }
['Java']