Help
Resource: Ch. 3, "Testing and Debugging", of Data Structures: Abstraction and Design Using Java.
Complete the Exercises for Section 3.2, Programming #1, in Ch. 3, "Testing and Debugging", of Data Structures: Abstraction and Design Using Java.
Submit your pseudocode response to the Assignment Files tab.
PROGRAMMING
Resource: Ch. 3, "Testing and Debugging", of Data Structures: Abstraction and Design Using Java.
Complete the Exercises for Section 3.5, Programming #1, in Ch. 3, "Testing and Debugging", of Data Structures: Abstraction and Design Using Java.
Submit your pseudocode response to the Assignment Files tab.
PROGRAMMING
1. Write the findLargest method described in self-check exercise 2 in section 3.4 using Test-Driven Development.
This is the self-check exercise 2 in section 3.4
/**
* 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) {