how to solve array out of bound exception code example Example: java array out of bounds //Use index inside the bounds of the array