The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Elements that are equal

Posted by Amirali Valiani on May 13, 2001 at 8:32 AM

However, this solution will not work for a list in which some elements are equal.

Amir

> hi steven,
> possibly u r trying to sort the entries in a list.
> if this is the case use TreeMap or the TreeSet class .all entries in these classes are automatically sorted in natural (i.e. in ascending) order.
> hope this helps
> regards,
> swapnil






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us