Java copyOf method problem with an Array of Objects
- by Greg
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