Answered step by step
Verified Expert Solution
Question
1 Approved Answer
specs for FunnyWord Write a public class cal1 Funnyword class Funnyword must have a main method what it does: pt user for a String 0.
specs for FunnyWord Write a public class cal1 Funnyword class Funnyword must have a main method what it does: pt user for a String 0. pron 1. read a String from the user 2. print whether the String is funny or no 3. continue until user enters the word "en The String is funny if it looks the same r right to left In order to pass all tests you must find f punetuation and case are ignored (look at HINT: you could use the nethod replaceAll delete all the punctuation n arks For example str.replaceAll(;".") returns a string where all senicolons have Notice: you cannot use any nethod called " considered forbidden knowledge Examples % java Funnyword Enter a String: Anna Enter a String: AnnA AnnA Enter a String: A man, a plan, a canal: Pai Enter a String: foo Enter a String: Annax Enter a String: end funny funny! funny! that is not funny that is not funny that is not funny
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