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]);
```
using a foreach loop:
```
for(String n : names)
System.out.println(n);
```

Computer Science & Information Technology

You might also like to view...

Systems that require constant updating and technical design are prone to which kind of error?

A) miscommunication B) design C) coding D) documentation

Computer Science & Information Technology

You can reopen the Excel worksheet and edit the chart's data by clicking the ____ button (CHART TOOLS DESIGN tab | Data group).

A. Open Worksheet B. Open Chart C. Edit Data D. Edit Worksheet

Computer Science & Information Technology