mirror of https://github.com/01-edu/public.git
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.
11 lines
539 B
11 lines
539 B
public class ExerciseRunner { |
|
public static void main(String[] args) { |
|
AnagramChecker checker = new AnagramChecker(); |
|
|
|
// Test cases |
|
System.out.println(checker.isAnagram("listen", "silent")); // Expected output: true |
|
System.out.println(checker.isAnagram("triangle", "integral")); // Expected output: true |
|
System.out.println(checker.isAnagram("apple", "pale")); // Expected output: false |
|
System.out.println(checker.isAnagram("Astronomer", "Moon starer")); // Expected output: true |
|
} |
|
} |