Help, please! I will mark as brainliest



Answer:
Change line 7 to:
for( int i=0; i < names.length; i++)
Last element in the array is one less than the length, ie:
stArr1.length - 1
To print every other value, you replace index++ with index += 2
Explanation:
Not only should you change the <= into <, but also i should start at 0, not 1. The first element of an array has index 0.