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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started