If you are still using JDK 1.1, you can start taking advantage
of the Collections Framework today. Sun Microsystems provides
a subset of the collections API for use with JDK 1.1. The
interfaces and classes of the framework have been moved from the java.lang
and java.util
package to the non-core com.sun.java.util.collections
package. This is not a complete set of classes changed to support
the framework, but only copies of those introduced. Basically,
that means that none of the system classes are sortable by
default; you must provide your own Comparator
.
The following table lists the classes available in the
Collections Framework release for JDK 1.1. In some cases, there
will be two different implementations of the same class, like
with Vector
, as the 1.2 framework version implements List
and the core 1.1 version doesn't.
AbstractCollection | AbstractList |
AbstractMap | AbstractSequentialList |
AbstractSet | ArrayList |
Arrays | Collection |
Collections | Comparable |
Comparator | ConcurrentModificationException |
HashMap | HashSet |
Hashtable | Iterator |
LinkedList | List |
ListIterator | Map |
NoSuchElementException | Random |
Set | SortedMap |
SortedSet | TreeMap |
TreeSet | UnsupportedOperationException |
Vector | |