Chapter 6: Arrays


Overview

All of the data types presented so far in this book have represented single units of information. The char type represents a single character, while the other types represent numbers with various formats and ranges.

This chapter will introduce arrays, which are clusters of data. You will learn how to create arrays and how to use them in programs, especially in the context of loops.

Arrays are extremely basic examples of objects. We can't claim that when you master arrays, you will have mastered object-oriented programming. However, in the course of this chapter, you will learn a number of concepts that will make it easy for you to master objects when they are presented in the next several chapters.




Ground-Up Java
Ground-Up Java
ISBN: 0782141900
EAN: 2147483647
Year: 2005
Pages: 157
Authors: Philip Heller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net