Question: Anagram Project (JAVA) Create a New Java Project called YourLastNameAnagram . Write a method that checks whether two words are anagrams. Two words are anagrams

Anagram Project (JAVA)

Create a New Java Project called YourLastNameAnagram.

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.

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.

Please provide a sample of the input and output of the working program.

PROGRAMMING GUIDELINES: A programming assignment will be assigned a grade of 0 if it fails to compile. Each program must not contain any spelling errors in the program output or points will be deducted. Each program must contain a comment section (or points will be deducted) that indicates the following: 1. Student Name 2. Program Name 3. Short Program Description 4. Due Date Programs should use appropriate spacing and indentation, in order to increase readability. Programs should only be completed in Eclipse. Use comments for clarification throughout your programs. Use meaningful variable names. Subdivide your program into mini-sections. For more difficult programs, this will make it easier to detect both syntax and logical errors. Naming Convention for mutator methods: set + fieldname (i.e. setName) Naming Convention for accessor methods: get + fieldname (i.e. getName)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets walk through the steps to create a Java program that checks if two words are anagrams Steps to Implement the Program Setup the Java Project Open ... View full answer

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!