
Wrapper classes are
explained in Chapter 3,
along with the concepts of
autoboxing and unboxing.
REFERENCE POINT
9.7 The ArrayList Class 609
9.7 The ArrayList Class
As we have seen, single-dimensional and multidimensional arrays are use-
ful in many situations. However, they have limitations.
Let’s say you are designing a search engine for a large website, for example,
an online bookstore. The user will type a word in a text field box, your code
will access a database, retrieve all the books with titles that contain this
word, and return them to the user.
We could store the book information in an array of books. One problem,
however, is that we don’t know ...