The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Trail: Collections

Lesson: Solving Common Collections Problems

Problem: When I try to use Arrays.sort() or Collections.sort() I get a ClassCastException.

Note: A better solution might be to download the Java 2 Platform (formerly known as JDK 1.2) to take advantage of the implementation of Comparable.

Problem: What collection interface behaves like the legacy Vector class? The feature I'm most interested in is a Vector's ability to grow dynamically in size.
Problem: Are Hashtables synchronized in Java 2 (formerly known as JDK 1.2)?
Problem: How do the Java collections compare to STL in C++?


Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search
Feedback Form

Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.