Question: Consider the class Calculation below. It has 3 static methods findMax, cube, and reverseWords. Also provided is the test class TestCalculation which has all the
Consider the class Calculation below. It has 3 static methods findMax, cube, and reverseWords. Also provided is the test class TestCalculation which has all the library imports and some of the methods predefined. Add test methods that test all static methods of Calculation class. For findMax method, ensure that you test for both positive and negative integers. You can assume that all necessary imports are already provided. public class Calculation { //method that returns maximum number public static int findMax(int arr[]) { int max=0; for (int i=1;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
