Question: 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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!