Java Reference
In-Depth Information
8
Arrays
CHAPTER OBJECTIVES
Define and use arrays for basic data organization.
Discuss bounds checking and techniques for managing capacity.
Discuss the issues related to arrays as objects and arrays of objects.
Explore the use of command-line arguments.
Describe the syntax and use of variable-length parameter lists.
Discuss the creation and use of multidimensional arrays.
Explore mouse and keyboard events.
I n our programming efforts, we often want to organize objects
or primitive data in a form that is easy to access and modify. The
ArrayList class, explored in Chapter 5, was used for exactly that
purpose. As the class name implies, an ArrayList is implemented
using arrays, which are programming constructs that group data
into lists. In this chapter we'll explore the details of arrays, which
are a fundamental component of most high-level languages. In the
Graphics Track sections of this chapter, we explore methods that let
us draw complex multisided figures, and examine the events gener-
ated by the mouse and the keyboard.
379
 
 
Search WWH ::




Custom Search