import java.util.Arrays; public class Assess5_4_Sample{ public static int k = 5; public static boolean func1(int[] x, int b){ b++; System.out.println("dog"); int [] c = {x[0]-2}; x = c; return true; } public static int[] func2(int[] a, int y){ a[0] = 8; y = y + 3; System.out.println(y + 4); int [] x = {5, 1}; x[1] = 5; int [] c = {k, 2}; a = c; return a; } public static void main(String[] args){ int [] x = {3,2}; int [] q = {3,2}; int b = 1; int [][] z = {q,{b},{6}}; 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 = {1, 5}; x = c; func1(x,q[1]); System.out.println(Arrays.toString(q)); System.out.println(func1(x,q[0])); System.out.println(k); } }