Self-Review Exercises

J.1 Fill in the blanks in each of the following statements:

a) A(n) __________ is used to iterate through a collection and can remove elements from the collection during the iteration.

b) An element in a List can be accessed by using the element’s __________ .

c) Assuming that myArray contains references to Double objects, __________ occurs when the statement "myArray[ 0 ] = 1.25;" executes.

d) Java classes __________ and __________ provide the capabilities of arraylike data structures that can resize themselves dynamically.

e) Assuming that myArray contains references to Double objects, __________ occurs when the statement "double number = myArray[ 0 ];" executes.

f) ExecutorService method __________ ends each thread in ...

Get Android™ How to Program, Second 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.