Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
22 Slide Java Collections Framework

22 Slide Java Collections Framework

Ratings: (0)|Views: 379|Likes:
Published by devinliao

More info:

Published by: devinliao on Oct 31, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

08/27/2012

pdf

text

original

 
1
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All ri
Chapter 22 Java CollectionsFramework 
 
2
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All ri
Objectives
3
To describe the Java Collections Framework hierarchy (§22.1).
3
To use the common methods defined in the Collection interface for operating setsand lists (§22.2).
3
To use the Iterator interface to traverse a collection (§22.3).
3
To use the JDK 1.5 foreach loop to simplify traversing a collection (§22.3).
3
To discover the Set interface, and know how and when to use HashSet,LinkedHashSet, or TreeSet to store elements (§22.3).
3
To compare elements using the Comparator interface (§22.4).
3
To explore the List interface, and know how and when to use ArrayList or LinkedList to store elements (§22.5).
3
To know how to use the static methods in the Collections class for lists andcollections (§22.6).
3
To distinguish Vector and ArrayList, and know how to use Vector and Stack (§22.7).
3
To explore the relationships among Collection, Queue, LinkedList, andPriorityQueue and to create priority queues using the PriorityQueue class (§22.8).
3
To understand the differences between Collection and Map, and know how andwhen to use HashMap, LinkedHashMap, and TreeMap to store values associatedwith keys (§22.9).
3
To obtain singleton sets, lists, and maps, and unmodifiable sets, lists, and maps usingthe static methods in the Collections class (§22.10).
 
3
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All ri
Java Collection Framework hierarchy
A
collection
is a container object thatrepresents a group of objects, often referredto as
elements
. The Java CollectionsFramework supports three types of collections, named
 sets, lists,
and
maps
.

Activity (8)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Dan liked this
vjiran liked this
comm_elect liked this
Rajesh Kumar liked this
tejas_thakor liked this
avsrkg liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->