File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java Collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Collections" Watch "Java Collections" New topic

Java Collections

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 662

When should I use a HashMap or a TreeMap, and, when should I use a HashSet, or a DeQue?
What are the practical applications suggested for the Collections?

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15037

A Map, a Set and a Deque are very different data structures. Do you understand the difference between them? The API documentation of those classes also contains detailed information about them.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45292
. . . or the Java™ Tutorials.
I agree. Here's the link:
subject: Java Collections
jQuery in Action, 3rd edition