@@ -0,0 +1,523 @@
+import java.util.Arrays;%0A%0Aclass CheckPermutation %7B%0A  public boolean checkpermutation(String s1, String s2) %7B%0A    if (s1.length() != s2.length()) return false;%0A%0A    char%5B%5D arr1 = s1.toCharArray();%0A    char%5B%5D arr2 = s2.toCharArray();%0A    Arrays.sort(arr1);%0A    Arrays.sort(arr2);%0A    return Arrays.equals(arr1, arr2);%0A  %7D%0A%0A  public static void main(String%5B%5D args) %7B%0A    System.out.println(new CheckPermutation().checkpermutation(%22dfad%22, %22fdad%22));%0A    System.out.println(new CheckPermutation().checkpermutation(%22%22, %22%22));%0A  %7D%0A%7D

Add solution 1.2 Java