Question: Instructions For this assignment, your task is to implement an interface (given below) using recursion. You are not allowed to use iteration (for, while, do-while,



Instructions For this assignment, your task is to implement an interface (given below) using recursion. You are not allowed to use iteration (for, while, do-while, etc) for any of the solutions. The interface IRecursive.java and the class Routecity.java (to help you implement the last 2 methods in the interface) have been provided. Implement the interface in a class named MyRecursiveImpl.java Implement the following interface: public interface IRecursive l string roverse (String str /reverses given string int multiply(int a, int /multiplies a and b double getTotal(intill array //adds numbers in 2d array String merge (String strl, String str2) /merges strl and str /into alphabetically //sorted string int countcities (Routecity startcity) /counts the /umber of //cities in route int getTotalPeopleBoarded (Routecity startCity): /totals number of //people that boarded //in the entire route boolean ist.astCityInRoute (Routecity eity) true if given city //is last city itn //route
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
