title: Java initialize large array with Max value
body: <p>How can I initialize an array of size <code>1000 * 1000 * 1000 * 1000</code> of all <code>Integer.MAXVALUE</code>?</p>
  
  <p>for example, I want to make this <code>int[][][][]dp = new int [1000][1000][1000][1000];</code> all have max value as later I need to compare a minimum. </p>
  
  <p>I tried </p>
  
  <pre><code>int [] arr = new int arr[N];
  Arrays.fill(arr,Integer.MAXVALUE);
  </code></pre>
  
  <p>but it doesn't work with multidimensional arrays, can anyone help?</p>