Javatpoint Logo
Javatpoint Logo

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


Keep and Peek are anagrams
MotherInLaw and HitlerWoman are anagrams
Next TopicJava String FAQs

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA