Question: This is a java project... Write a method that checks whether two words are anagrams. Two words are anagrams if they contain the same letters

This is a java project... Write a method that checks whether two words are anagrams. Two words are anagrams if they contain the same letters in any order. For example, "silent" and "listen" are anagrams. The header of the method is as follows: :

public static boolean isAnagram(String s1, String s2)

Write a main method to invoke the isAnagram method and prompt the user for input.

Please put the program in text

Input Validation: Verify that each input is strictly alphabetic characters only. If an incorrect value is entered, continuously prompt for a new value. This should not halt or terminate your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!