Question: We are tasked with implementing two recursive methods in the class RecurAssign. For both methods, you must include a call to MyStackTrace.printTrace ( ) method.
We are tasked with implementing two recursive methods in the class RecurAssign. For both methods, you must include a call to MyStackTrace.printTrace method.
Tasks RecurAssign Class
Task : implement a recursive method that sum all the even integers between two given numbers. The numbers may be positive, negative or zero. If the first integer smallestInt is larger than the second integer largestInt then return Complete the method public int sumEvenNumbersOnlyint smallestInt, int largestInt to complete this task. See the method comments for more detail.
Task : implement a recursive method that, given a string, it returns the a version of the string with all as removed. The as can be uppercase or lowercase a The string may or may not contain a and could contain mutliple as The string given could also be null, so include checks for null in your implementation. Complete the method public String removeAsString text to complete this task. See the method comments for more detail.
Test your code using the ADriver class., add additional tests to your ADriver to test any other conditions you think are necessary
ADriver Example Output
lln
MyStackTrace class:
package assignment;
public class MyStackTrace
public static void printTrace
StackTraceElement trace Thread.currentThreadgetStackTrace;
forint i; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
