Question: Hello is this for java, i put in the code but i keep getting this error: 1 import java.util.Scanner; 3 public class UnitTesting f 4

 Hello is this for java, i put in the code but

Hello is this for java, i put in the code but i keep getting this error:

i keep getting this error: 1 import java.util.Scanner; 3 public class UnitTesting

1 import java.util.Scanner; 3 public class UnitTesting f 4 II Method returns origNum cubed 5 public int cubeNum(int origNum) t return origNum origNum * origNum 9 public static void main (String args) f UnitTesting cubeTester new UnitTesting; System.out.println("Testing started") 13 System.out.println("2, expecting 8, got: cubeTester.cubeNum(2)); "+cubeNum(3)); System . out.println("?,expecting System.out.println("-1,expecting 15 27,got: -1,got: "+cubeNum(-1)); Your solution goes here*/ System.out.println("Testing completed") 18 19 20

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!