Chapter 4
Using Java Arrays
The array is a universal data structure among programming languages. With an array, you can collect many instances of one type of data in a single data structure. Once you learn the concept of an array in any language, you will know the basics for applying it in other languages.
Arrays are great for learning and have many practical uses. In Java, however, the implementation is bit funny. Arrays don’t take full advantage of the object model that Java is known for. I hear some people say they are “part object, part primitive,” but that’s not quite right. To understand them very well, you’ll want to pay close attention to how arrays are made and used.
In this chapter, we’ll cover the following topics:
- Understanding ...
Get Java SE 7 Programming Essentials 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.