Question: Need J unit test case to test against this code to make sure everything is working fine Just an example of JUnit test On the


Need J unit test case to test against this code to make sure everything is working fine
Just an example of JUnit test On the left the code and you can see the test case on the right. 
//Java program for consecutive four equal numbers /fHeader file section import java.util.Scanner; //class declartion class ConsecutiveFour [ //main function public static void main(String[] args) /fcreate a scanner Scanner scnew Scanner (System.in); int[]t] array; int row, col; System.out.print("Enter number of row:"); rowSc.nextInt); System.out.print("Enter number of column:"); colsc.nextInt); array new int [row] [col]; / fetching data into array System.out.println("Enter the elements in array."); System.out.println("Enter elements in line: "(1+1)); for(int j e; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
