The outer for loop indicates that i can grow as large as arr3.length-1. But, on the two lines you indicate as troublesome you use the expression arr3[i+1] which is past the end of the array and,...