You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
amin 33854c08cc docs: fix inconsistency between subject and test 2 months ago
..
ExerciseRunner.java docs: adding subject and main 2 months ago
README.md docs: fix inconsistency between subject and test 2 months ago

README.md

Is Anagram

Instructions

Create a class AnagramChecker that provides a method to check if two strings are anagrams. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.The comparison should be case insensitive.

Expected Class

public class AnagramChecker {
    public boolean isAnagram(String str1, String str2) {
        // Implementation to check if str1 and str2 are anagrams
    }
}

Usage

Here is a possible ExerciseRunner.java to test your class:

public class ExerciseRunner {
    public static void main(String[] args) {
        AnagramChecker checker = new AnagramChecker();

        // Test cases
        System.out.println(checker.isAnagram("listen", "silent"));
        System.out.println(checker.isAnagram("triangle", "integral"));
        System.out.println(checker.isAnagram("apple", "pale"));
        System.out.println(checker.isAnagram("Astronomer", "Moon starer"));
    }
}

Expected Output

$ javac *.java -d build
$ java -cp build ExerciseRunner
true
true
false
false
$