I'm reviewing collections, and of all the books I've read and other web-sites I come across all seem to indicate that the TreeSet implements the SortSet interface. While looking through JDK I came across this: "This class (java.util.TreeSet) implements the Set interface, backed by a TreeMap instance. ... " It this an error in the jdk doc? Can someone explain the anomalies here?
<a href="http://www.rajindery.com" target="_blank" rel="nofollow">Rajinder Yadav</a><p>Each problem that I solved became a rule which served afterwards to solve other problems. --Rene Descartes
Great work Valetin, I guess the source code can't lie ... the ultimate reference So if I come across a ture/false type exam question asking if a TreeSet implements the SortSet interface I should answer false! [ February 28, 2002: Message edited by: Rajinder Yadav ]