In this chapter, we depart from our study of numeric data items to consider a related topic. Many nontrivial programs that process numeric data also manipulate arrays of data items. Chapter 1 explained that arrays are a special kind of container data (Java collection). Although entire volumes discuss the concepts and techniques of object-oriented container classes, this chapter introduces just enough about object-oriented arrays to meet the needs of typical computational programs, avoiding complex features that such programs are unlikely to need.
We begin by examining the facilities already built into the languages or their standard libraries.