Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Add two more statements to main0 to test inputs 3 and-1. Use print statements similar to the existing one (don't use assert). import java.util.Scanner; 3
Add two more statements to main0 to test inputs 3 and-1. Use print statements similar to the existing one (don't use assert). import java.util.Scanner; 3 public class UnitTesting t 4 1 Function returns origNum cubed 5 public static int cubeNum(int origNum) f return origNum * origNum origNum; 9 public static void main (String [ args) f System.out.println( Testing started"); Systen.out.pointin herexpecting 8. got cubetium (2))2 12 VIsolution goes 14 System.out.println("Testing completed"); 18 19 )
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