1. Engineering
  2. Computer Science
  3. list the boundary conditions and tests needed for a method...

Question: list the boundary conditions and tests needed for a method...

Question details

List the boundary conditions and tests needed for a method with the following heading:

/** 
 *  Search an array to find the first occurrence of the 
 *  largest element 
 *  @param x Array to search 
 *  @return The subscript of the first occurrence of the 
 *          largest element 
 *  @throws NullPointerException if x is null 
 */ 
public static int findLargest(int[] x) {  
  1. Write the findLargest method described above using Test-Driven Development.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution