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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started