Sets are collections that allow only one object with a given value in them.
Tutorial Details:
Sets are collections that allow only one object with a given value in them. The java.util.Set interface is a subinterface of Collection. There are two very useful concrete classes that implements sets:
java.util.HashSet is implemented with a hash table. Access time is O(1). Entries are unsorted.
java.util.TreeSet is implemented as a balanced binary tree. Access time is O(log N). Entries are sorted.
Rate Tutorial: http://www.roseindia.net/java/java-tips/data/collections_non_generic/25sets/sets.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Java: Sets
View Tutorial: Java: Sets
Related
Tutorials:
|