196k views
4 votes
Easy coding question, please help.

Easy coding question, please help.-example-1
Easy coding question, please help.-example-1
Easy coding question, please help.-example-2
Easy coding question, please help.-example-3
User Ekcrisp
by
4.5k points

1 Answer

0 votes

Answers:

What is the index of the last element in the array? stArr1.length()-1

This prints the names in order. How would I print every other value? Change line 4 to: index = index +2

Change line 7 to: i < names.length

User Nehacharya
by
4.3k points