Java copyOf method problem with an Array of Objects

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-05-07T14:14:33Z Indexed on 2010/05/07 14:18 UTC
Read the original article Hit count: 226

Filed under:
|
|
|
|
elementData = Arrays.copyOf(elementData, newCapacity);

Gives error: "The method copyOf(Object[], int) is undefined for the type Arrays"

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?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about system