- Define a class MyArrayPractice with its main method.
- Write the following methods:
// It should create a copy of the array nums. If you change the new array, nums should not change.
public static int[][] copy(int[][] nums){
}
// Modify nums. Replace negative values:
// When the row index is the same as the column index replace that value with 0.
// Otherwise, replace negative values with 1.
public static int[][] updateValues(int[][] nums){
}
- Write a few test cases in the main method to test your code.
Save your file here: .../APCSA_1/apcsa-assignments-YourUsername/homework/13_copy_arrays/MyArrayPractice.java