Question: must be done with java. It is an introductory class to java please make it as simple as possible Mrite a public class call FunnyWord

must be done with java. It is an introductory class to java please make it as simple as possible

must be done with java. It is an introductory class to java

Mrite a public class call FunnyWord class FunnyWord must have a main method what it does: 8. prompt user for a String 1. read a String from the user 2. print whether the String is funny or not 3. continue until user enters the word "end" The String is funny if it looks the same read from left to right or right to left In order to pass all tests you must find funny phrases when spaces, punctuation and case are ignored (look at the examples). HINT: you could use the nethod replaceAll from String in order to delete all the punctuation marks For example: str.replaceAll("; ", ""); returns a string where all senicolons have been replaced by nothing Notice: you cannot use any method called "reverse". That is considered forbidden knowledge Examples java FunnyWord Enter a String: Anna funny! funny! funny! Enter a String: AnnA AnnA Enter a String: A man, a plan, a canal: Panama Enter a String: foo that is not funny Enter a String: Annax that is not funny Enter a String: end that is not funny

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!