|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (5)
View page history... |
| h5.Algorithms |
| * [copy1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#6] finds the maximum value in the list. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. |
| * [iterator2.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#7] shows how to safely modify a list while iterating over it. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [map1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#2] sorts a HashSet using both a natural and comparative sorting order. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [max1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#5] copies one list to another, overwriting the elements in the target list. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. |
| * [PhoneList.java|http://java.sun.com/new2java/supplements/solutions/July02.html] shows how to use a linked hash map to maintain a phone list. For supporting information see [New to Java Programming Supplement, July 2002|http://java.sun.com/new2java/supplements/2002/July02.html]. |
| * [retro1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#11] illustrates collection methods for migrating old code to the Collections Framework. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [RunArrayList.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#13] extends {{AbstractList}} to store elements in slots, with each slot representing a range of contiguous element indices where all indices in the slot refer to the same element. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [search1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#3] generates random numbers and adds them to a list. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [serial1.java and serial2.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#8/] write a HashMap object to a file test.ser and then restore it. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [shuffle1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#4] takes a list and scrambles it using an internally-supplied random number generator. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. |
| * [Sort.java|http://java.sun.com/docs/books/tutorial/collections/algorithms/examples/Sort.java] prints its arguments in alphabetical order. For supporting information see [The Java Tutorial Continued: Collections|http://java.sun.com/docs/books/tutorial/collections/algorithms/]. |
| * [sort1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#1] sorts an ArrayList using both a natural and comparative sorting order. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [StringArrayList.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#12] subclasses the ArrayList class and implements the subclass to accept only strings in its list. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [sync1.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#10] shows how to use a collection in a thread-safe manner. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [test.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#6] orders a list using the Comparable interface. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. * [wrapper1.java and wrapper2.java|http://java.sun.com/developer/technicalArticles/Collections/Using/index.html#9] illustrate the fixed size property of collections. For supporting information see [Using Collections with JDK 1.2|http://java.sun.com/developer/technicalArticles/Collections/Using/]. |
| h5.Interfaces |
... |