Self-Review Exercises

7.1 Fill in the blank(s) in each of the following statements:

a) Lists and tables of values can be stored in ________ and _______.

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

c) The ________ allows you to iterate through an array’s elements without using a counter.

d) The number used to refer to a particular array element is called the element’s _______.

e) An array that uses two indices is referred to as a(n) ________ array.

f) Use the enhanced for statement ________ to walk through double array numbers.

g) Command-line arguments are stored in _______.

h) Use the expression ________ to receive the total number of arguments in a command line. Assume ...

Get Java™ How To Program (Early Objects), Tenth 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.