Thanks to visit codestin.com
Credit goes to www.java2s.com

Array « JDK 6 « Java






1.Using Arrays.copyOf to copy an array
2.Array Reallocation