how to initialize int[] temp in java code example Example: java initialize int array int[] arr = new int[n];