O'Reilly logo

Android How to Program by Paul Deitel, Abbey Deitel, Harvey Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

E. Arrays and ArrayLists

Objectives

In this appendix you’ll learn:

• What arrays are.

• To use arrays to store data in and retrieve data from lists and tables of values.

• To declare arrays, initialize arrays and refer to individual elements of arrays.

• To iterate through arrays with the enhanced for statement.

• To pass arrays to methods.

• To declare and manipulate multidimensional arrays.

• To perform common array manipulations with the methods of class Arrays.

• To use class ArrayList to manipulate a dynamically resizable array-like data structure.

Outline

E.1 Introduction

E.2 Arrays

E.3 Declaring and Creating Arrays

E.4 Examples Using Arrays

E.5 Case Study: Card Shuffling and Dealing Simulation

E.6 Enhanced for Statement

E.7 Passing Arrays ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required