Chapter 9: Arrays

The following pages have the complete source code and examples from Chapter 9, Arrays, from the Java Developer's Resource.

Non-trivial computing problems often require storing lists of items. Often these items can be referred to by their position in the list. Sometimes this ordering is natural as in a list of the first ten people to arrive at a sale. The first person would be item one in the list, the second person to arrive would be item two, and so on. Other times the ordering doesn't really mean anything, but it's still convenient to be able to assign each item a unique number and enumerate all the items in a list by counting out the numbers.

There are many ways to store lists of items including linked lists, sets, hash tables, binary trees and arrays. Which one you choose depends on the requirements of your application and the nature of your data. Java provides classes for many of these ways to store data. In this chapter youšll explore the simplest and most common, the array.

In this chapter you learn about


Examples from Other Chapters
[ Cafe Au Lait | Books | Trade Shows | Links | FAQ | Tutorial | User Groups ]
Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
Last Modified July 23, 1996