Consider the following method declaration. public static void increment(int[][] a) { for (int r = 0; r < a.length; r++) { for (int c = 0; c < a[0].length; c++) { if (a[r][c] >= 0) a[r][c] += 2; else a[r][c] -= 2; } } } Assume the 2D array, matrix, has been initialized to the following values: 2 9 -10 3 0 -4 -10 -4 -1     What is the value of matrix after the method call, increment(matrix);?Single choice

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

Similar Questions

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!