title: .clone() or Arrays.copyOf()?
body: <p>In an effort to reduce mutability, should we rather use </p>
  
  <pre><code>public void setValues(String[] newVals) {
  
       this.vals = ( newVals == null ? null : newVals.clone() );
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public void setValues(String[] newVals) {
  
       this.vals = ( newVals == null ? null : Arrays.copyOf(newVals, newVals.length) );
  }
  </code></pre>