68
Write a Java program to check whether two strings are anagram or not?
Two strings are called anagrams if they contain same set of characters but in different order.
“keep ? peek”, “Mother In Law – Hitler Woman”.
File: AnagramString .java
Output:
Keep and Peek are anagrams MotherInLaw and HitlerWoman are anagrams
Next TopicJava String FAQs