Help, please! I will mark as brainliest
![Help please I will mark as brainliest class=](https://us-static.z-dn.net/files/ddf/e0ddd643dcf53f5a523cb5d061da1a62.jpg)
![Help please I will mark as brainliest class=](https://us-static.z-dn.net/files/d6a/1956efb08997ba56d6df915053b80d06.jpg)
![Help please I will mark as brainliest class=](https://us-static.z-dn.net/files/d7a/2ae79bde8477ca1c014cfab4fd9ecede.jpg)
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.