declare and initialize integer array in java using Integer code example Example: java initialize int array int[] arr = new int[n];