@@ -0,0 +1,549 @@
+import java.util.Arrays;%0A%0Apublic class ValidAnagram %7B%0A    public boolean isAnagram(String s, String t) %7B%0A        char%5B%5D charS = s.toCharArray ();%0A        char%5B%5D charT = t.toCharArray ();%0A        Arrays.sort (charS);%0A        Arrays.sort (charT);%0A        String sortedS = new String (charS);%0A        String sortedT = new String (charT);%0A        return (sortedS.equals (sortedT));%0A    %7D%0A    %0A    public static void main(String%5B%5D args) %7B%0A        ValidAnagram test = new ValidAnagram ();%0A        System.out.println (test.isAnagram(%22ana%22, %22naa%22));%0A    %7D%0A%7D

Check if input strings are valid anagrams