ArrayResizer Class
public class ArrayResizer
{
/** Returns true if all values in row r are non-zero */
public static boolean isNonZeroRow(int[][] arr, int r)
{ /* to be implemented in part (a) */ }
/** Returns a new array with zero-only rows removed */
public static int[][] resize(int[][] arr)
{ /* to be implemented in part (b) */ }
}
Part A: Check if a row contains all non-zero values
Part B: Create a new array with rows containing any zeros removed