Murach's Java SE 6
How to work with collections and generics
Once you know how to use arrays, this chapter shows you how to use collections, which are similar to arrays but provide more advanced features. Along with collections, you'll learn how to use generics, a feature introduced in Java 5 that lets you specify the type of objects that can be stored in a collection.
|
|
|
|
A comparison of arrays and collections |
346 |
|
An overview of the Java collection framework |
348 |
|
Commonly used collection classes |
348 |
|
An introduction to generics |
350 |
|
|
The ArrayList class |
352 |
|
Code examples that work with array lists |
354 |
|
|
An overview of the Invoice application |
356 |
|
The code for the Invoice class |
358 |
|
The code for the InvoiceApp class |
360 |
|
|
The LinkedList class
|
362 |
|
Code examples that work with linked
lists |
364 |
|
A class that uses a linked list to implement
a generic queue |
366 |
|
|
An overview of the enhanced Invoice
application |
368 |
|
The code for the InvoiceApp class |
370 |
|
|
The HashMap and TreeMap classes |
374 |
|
Code examples that work with hash maps
and tree maps |
376 |
|
|
An introduction to legacy collection
classes |
378 |
|
How to use an untyped collection |
380 |
|
How to use wrapper classes with untyped
collections |
382 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike
Murach & Associates, Inc. All rights reserved.
|