(String s, String t)
| 2 | |
| 3 | class Solution { |
| 4 | public boolean isAnagram(String s, String t) { |
| 5 | if (s.length() != t.length()) { |
| 6 | return false; |
| 7 | } |
| 8 | |
| 9 | char[] sChars = s.toCharArray(); |
| 10 | char[] tChars = t.toCharArray(); |
| 11 | |
| 12 | Arrays.sort(sChars); |
| 13 | Arrays.sort(tChars); |
| 14 | |
| 15 | return Arrays.equals(sChars, tChars); |
| 16 | } |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected