Write Recursive Java Method Returns True Given String Parameter S Reads Backward Forward E Q43896566
Write a recursive Java method that returns true if a givenstring parameter “s” reads the same backward as forward. Forexample, your method should return true if the s = “kayak” andshould return false, if s = “ab”.
Your function header should be: public boolean p(string s);
feel free to add input parameters to the method signature ifneeded.
Expert Answer
Answer to Write a recursive Java method that returns true if a given string parameter “s” reads the same backward as forward. For …
OR