how to make an array in a constructor in java code example Example: java initialize int array int[] arr = new int[n];