Problem 4.14

 

Question 4.14: Write a program in Java to check whether two given strings are an anagram.

Test Data :

Input the first String : spare

Input the second String : pears

Expected Output :

spare and pears are Anagram.

Previous Post Next Post