title: Java Array change value for half of half etc
body: <p>So I have a method that takes in a size of an array. My method makes half the array 0's.</p>
  
  <pre><code>int [] arrary2 = new int[arraySize];
  for(int i = 0; i &lt; arraySize/2; i++){
      arr2[i] = 0;
  }
  //do rest of code?
  return array2;
  </code></pre>
  
  <p>How do I make the half of the last half my array into 1's and so on.
  For example an array of size 14, but the array size could be any size?</p>
  
  <p>[0,0,0,0,0,0,0,1,1,1,1,2,2,3] </p>