Question: Part b- Eclipse/Java (Write your name and lab day and time as a comment on top of each java file. Also add comments explaining your

Part b- Eclipse/Java (Write your name and lab day and time as a comment on top of each java file. Also add comments explaining your logic whenever possible) Write a program that calls a recursive method called repeat that accepts a strings and an integer n as parameters and that returns s concatenated together n times For example: repeat("cs", 3) returns "cscscs", repeat ("cs", 0) returns "". 1. 2. Write a recursive method isReverse that accepts two strings as a parameter and returns true if the two strings contain the same sequence of characters as each other but in the reverse order. For example, the string "hello" backwards is olleh", so a call of isReverse("Java", "avaJ") would return true and isReverse( "Java, ava) would return false. 3. Write a recursive method called starString that accepts an integer as a parameter and prints to the console a string of starts (asterisks) that is 2n (i.e. 2 to the nth power) long. For example: starString(0) should print*(because 21) starString(2) should print(because 22 4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
