title: Java array assignment multiple values keeping the initial array
body: <p>Is there a way in Java to assign multiple values to an Array in one statment
  then later you can still be able to append to the same array other values?</p>
  
  <p>e.g. Having a String array defined already with length of 4 </p>
  
  <pre><code>String[] kids = new String[4];
  </code></pre>
  
  <p>I would like to assign multiple values (2 values for example) to the array in one statment; maybe something close to the array init </p>
  
  <pre><code>kids = {"X", "Y"};
  </code></pre>
  
  <p>or the array redefinition</p>
  
  <pre><code>kids = new String[] {"X", "Y"};
  </code></pre>
  
  <p>but without loosing the initial array as later I will need to add to it other values e.g.</p>
  
  <pre><code>if(newKid) {
      kids[3] = "Z";
  }
  </code></pre>
  
  <p>or there is no way to achieve this and have to assign values one by one</p>
  
  <pre><code>kids[0] = "X";
  kids[1] = "Y";
  if(newKid) {
      kids[3] = "Z";
  }
  </code></pre>