title: Dealing with an ArrayStoreException
body: <pre><code>Object[] o = "a;b;c".split(";");
  o[0] = 42;
  </code></pre>
  
  <p>throws</p>
  
  <pre><code>java.lang.ArrayStoreException: java.lang.Integer
  </code></pre>
  
  <p>while</p>
  
  <pre><code>String[] s = "a;b;c".split(";");
  Object[] o = new Object[s.length];
  for (int i = 0; i &lt; s.length; i++) {
      o[i] = s[i];
  }
  o[0] = 42;
  </code></pre>
  
  <p>doesn't.</p>
  
  <p>Is there any other way to deal with that exception without creating a temporary <code>String[]</code> array?</p>