Instead of copying data between two arrays, use System.arrayCopy method