Write a loop that cycles through an array of String objects called names and prints them out, one per line.

What will be an ideal response?

```
using a for loop:
for(int i = 0; i < names.length; i++)
System.out.println(names[i]);
Answer:: using a foreach loop:
for(String n : names)
System.out.println(n);
```

Computer Science & Information Technology

You might also like to view...

A document that can be read by Adobe Acrobat instead of Word is a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

To select all cells that contain a formula, press ________

A) Alt + Ctrl + Shift B) Alt + Ctrl + Enter C) Ctrl + F D) Ctrl + G

Computer Science & Information Technology