Page 404 - Introduction to Programming with Java: A Problem Solving Approach
P. 404
370 Chapter 10 Arrays and ArrayLists
10
CHAPTER
Arrays and ArrayLists Objectives
• Compare an array with other objects.
• Create and initialize arrays.
• Copy values from one array to another.
• Shift data in an array.
• Make histograms.
• Search an array for particular data.
• Sort data.
• Create and use two-dimensional arrays.
Apago PDF Enhancer
• Create and use arrays of objects.
• See how the ArrayList class makes arrays more flexible. • Store primitives in an ArrayList.
• Pass anonymous objects to and from methods.
• Learn how to use for-each loops.
Outline
10.1 Introduction
10.2 ArrayBasics
10.3 ArrayDeclarationandCreation
10.4 ArraylengthPropertyandPartiallyFilledArrays
10.5 CopyinganArray
10.6 ProblemSolvingwithArrayCaseStudies
10.7 SearchinganArray
10.8 Sorting an Array
10.9 Two-DimensionalArrays
10.10 ArraysofObjects
10.11 TheArrayListClass
10.12 StoringPrimitivesinanArrayList
370