September 2017
Intermediate to advanced
800 pages
23h 19m
English
In This Chapter
• The Basics of Arrays in Java
• Dividing a Program into Classes
The array is the most commonly used data storage structure; it’s built into most programming languages. Because arrays are so well known, they offer a convenient jumping-off place for introducing data structures and for seeing how object-oriented programming and data structures relate to one another. In this chapter we’ll introduce arrays in Java and demonstrate a home-made array class.
We’ll also examine a special kind of array, the ordered array, in which the data is stored in ascending (or descending) key order. This ...