Self-Review Exercises

7.1Fill in the blank(s) in each of the following statements:
  1. Lists and tables of values can be stored in _____.

  2. An array is a group of _____ (called elements or components) containing values that all have the same _____.

  3. The _____ allows programmers to iterate through the elements in an array without using a counter.

  4. The number used to refer to a particular element of an array is called the element’s _____.

  5. An array that uses two indices is referred to as a(n) _____ array.

  6. Use the enhanced for statement _____ to walk through double array numbers.

  7. Command-line arguments are stored in _____.

  8. Use the expression _____ to receive the total number of arguments in a command line. Assume that command-line arguments are stored in String ...

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.