Java Anagrams

  • + 1 comment

    why it not covering test cases failed 3/17

    static boolean isAnagram(String a, String b) {
            // Complete the function
            String c=a.toLowerCase();
            String d=b.toLowerCase();
            String e= new StringBuilder(b.toLowerCase()).reverse().toString();   
             return (c.equalsIgnoreCase(e)||c.equalsIgnoreCase(d)? true : false);
                
            }