Sedate Sedate
  • 20-11-2020
  • Computers and Technology
contestada

Help, please! I will mark as brainliest

Help please I will mark as brainliest class=
Help please I will mark as brainliest class=
Help please I will mark as brainliest class=

Respuesta :

tonb
tonb tonb
  • 20-11-2020

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.

Answer Link

Otras preguntas

What does Roosevelt think the government needs to
In a certain chemical, the ratio of zinc to copper is 4 to 17. A jar of the chemical contains 714 grams of copper. How many grams of zinc does it contain? It co
Which graph shows the change in velocity of an object in free fall?
Molecules are Group of answer choices 2 elements bound together 2 atoms bound together 2 or more atoms mixed together 2 or more atoms bound together
Help me out plz. I’m struggling.
How is someone death the sead of a nation
What is the volume of 4.62 g of mercury? The density of mercury is 13.5 g/cm3.
In the Arab world, enslaved people were often Arab. Asian. Indian. European.
Question 16 1 pts Jessie feels pressured by his parents to get a job. This is an example of the law of?readinessdisuseeffectbelonging​
What do you want to be when you grow up? People are asked this question all the time. When you think about your talents and interest, what career do you see in