Question: Write an interface named PlayString which has one method called StringBuider backwardsString(String s). Write one class that implements the PlayString interface such that the


Write an interface named "PlayString" which has one method called "StringBuider backwardsString(String s)". Write one class that implements the PlayString interface such that the backwardsString method return the backwards of the given String s. Please also write a small main method to test your class. interface PlayString { StringBuilder backwardsString(String s); } The execution sample is provided as follows: Input one String: I love Singapore backward is: eropagnis evol I Input one String: Jave is so awesome! backward is: !emosewa os si ava]
Step by Step Solution
There are 3 Steps involved in it
Heres the implementation of the PlayString interface and a class StringReverser that implements it j... View full answer
Get step-by-step solutions from verified subject matter experts
