title: copyOf method undefined for the type Arrays
body: <pre><code>elementData = Arrays.copyOf(elementData, newCapacity);
  </code></pre>
  
  <p>Gives error:</p>
  
  <blockquote>
    <p>The method copyOf(Object[], int) is undefined for the type Arrays</p>
  </blockquote>
  
  <p>This was not a problem on my home computer, but at my school's it gives the error above.  I'm guessing it's running an older JRE version - any workaround?</p>