PLZ WRITE THIS PROGRAM USE JAVA WRITE A PUBLIC CLASS CALL FUNNYWORD. CLASS FUNNY

plz write this program use java Write a public class call FunnyWord.
class FunnyWord must have a main method.
what it does:
0. prompt user for a String
1. read a String from the user
2. print whether the String is funny or not (see definition below)
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.
For example:
anna is funny
annex is not funny
You could use a loop to drive the program (i.e. keep asking user for a
String until they enter “end”). You could use another loop to go
through the string entered character by character.
In order to pass all tests you must find funny phrases when the
following characters are ignored:
. , ! ? :
ignore also spaces.
for examples
str = str.replace(“?”,””);
deletes all question marks.
Ignore case also. So the following sentence is funny:
A. nn: a!
HINT: here are some methods of String you may find useful:
toLowerCase(): returns another String in lower case
length(): gives you the length of the String
str.replace(“:”,””): deletes “:” from str
you can build a String character by character this way:
char c;
String rr;
rr = rr + c; //adds the c at the end of rr
in the slides and the book we saw a method called reverse.
Notice: you cannot use any method called “reverse”. That is
considered forbidden knowledge. If you write your own call it
anything else.
Examples
(notice the spaces at the beginning of the line in “funny!” and “that
is not funny”)
% java FunnyWord
Enter a String: annna
funny!
Enter a String: abcXcba
funny!
Enter a String: A dog, a plan, a canal: pagoda.
funny!
Enter a String: a b cX cba:
funny!
Enter a String: abc
that is not funny
Enter a String: end
that is not funny
%
attention: follow the instructions on the top and only use loop and scanner, do not use other method,