import java.util.Arrays; /* Trace throught the following code by hand, and record what it prints out. To check your answers, compile and run the file. */ public class Assess5_1_Sample{ public static int k = 5; public static boolean func1(int[] x, int y){ System.out.println("hi"); int [] c = {y}; x = c; k--; return false; } public static int[] func2(int[] a, int b){ a[1] = 9; b = b + 2; System.out.println(b + 1); int [] x = {6, 6}; int [] c = {b, 7}; a = c; return a; } public static void main(String[] args){ int [] x = {3,4}; int [] q = {3,4}; int b = 5; int [][] z = {q,{b},{2}}; q = func2(x,b); System.out.println(Arrays.toString(q)); System.out.println(b); System.out.println(Arrays.toString(x)); System.out.println(Arrays.deepToString(z)); int [] c = {3, 4}; x = c; func1(x,q[0]); System.out.println(Arrays.toString(q)); System.out.println(func1(x,q[0])); System.out.println(k); } }