[LeetCode]Valid Anagram
public class Solution { public boolean isAnagram(String s, String t) { char[] first = s.toCharArray(); Arrays.sort(first); char[] second = t.toCharArray(); Arrays.sort(second); return new String(first).equals(new String(second)); } }