what kind of collection show I use?

if I want the data always stored in ascending order in the collection, what kind of data structure should I use? is there something like binary tree in java?thanks!null
[189 byte] By [Jack_tta] at [2007-11-26 22:58:08]
# 1
http://java.sun.com/j2se/1.4.2/docs/api/java/util/TreeMap.html if you need SortedMap behaviour http://java.sun.com/j2se/1.4.2/docs/api/java/util/TreeSet.html if you need SortedSet behaviour
abc0xyza at 2007-7-10 12:23:49 > top of Java-index,Core,Core APIs...
# 2
thanks!:)
Jack_tta at 2007-7-10 12:23:49 > top of Java-index,Core,Core APIs...