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...

The ____________________ tool is used to display points on strokes.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In the accompanying image of a Microsoft Word 2016 document, Box A points to the _____.? ?

A. ?title bar B. ?status bar C. ?taskbar D. ?scroll bar

Computer Science & Information Technology

You use the ________ to find any content that might cause difficulties for users

A) Accessibility Inspector B) Content Checker C) Accessibility Checker D) Content Inspector

Computer Science & Information Technology

To enable the Active Directory Recycle Bin, you would use the ________ command-line utility

a. Recycle.exe b. Ldp.exe c. Adbin.exe d. It is already enabled by default.

Computer Science & Information Technology