Write a short program that accepts an arbitrary number of command line arguments, and prints out those containing the character 'z'.
What will be an ideal response?
```
public class PrintZArgs {
public static void main(String[] args) {
for(String s : args) {
boolean printed = false;
for(int i = 0; (i < s.length) && (!printed); i++)
if(s.charAt(i) == 'z') {
printed = true;
System.out.println(s);
} // end if
// end inner for loop
}//end foreach
}//end main
}//end class
```
You might also like to view...
The PowerPoint Web App has fewer tabs on the Ribbon, and fewer command buttons on each tab
Indicate whether the statement is true or false
Photoshop's ____ feature is great for quickly making two copies of a set of PSD files, with one set saved as JPEGs for the website and one set saved as TIFFs for archiving, for example.
A. Conversion B. Mass Convert C. File Processor D. Image Processor
The Evaluate Formula dialog box is used to evaluate each part of a(n) ________ in a step-by-step process
Fill in the blank(s) with the appropriate word(s).
A record is another term for a(n) ____.
A. tuple B. field C. attribute D. property