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

why does Paine begin his argument for independence with a attack on the principle of monarchy and hereditary succession?
How did the democracy of Athens influence the American government?
How do I find the slant height of a square pyramid? The base length is 4 inches and the area of it is 136 square inches. Thank you!
What is the value of 6P6?   A. 1
an inflated balloon rubbed by a piece of wool and prssed against the wall sticks. which force acts on it?
The water level in a swimming pool increased from 4.5 feet to 6 feet. What is the percent increase in the water rounded to the nearest tenth of a percent? Show
what is the theme of henry huggins by beverly cleary and what is the beginning middle and end plot and the theme of ralph s mouse
what words would you describe persistence as an acrostic poem?
How to find next number in this sequence. 2,7,26,101,400?
What is the difference between a storyboard and a comic strip?