Tree abstract data type without SWING paraphernalia?

E

exquisitus

I want to use a tree ADT (preferably a red black tree) would rather not
have to "roll my own" - but I don't want to import the SWING stuff, I'm
writing a session bean and I don't need the GUI stuff - any ideas?

Thanks
 
E

Eric Sosman

exquisitus said:
I want to use a tree ADT (preferably a red black tree) would rather not
have to "roll my own" - but I don't want to import the SWING stuff, I'm
writing a session bean and I don't need the GUI stuff - any ideas?

Is there some reason you don't like java.util.TreeMap
and java.util.TreeSet?
 
E

exquisitus

No particular reason (other than the fact that I didn't know they
existed :) ). I am one of those programmers who like to jump in at the
deep end and get my hands dirty - the downside is that I sometimes miss
the obvious - thanks for pointing it out.
 
E

Eric Sosman

exquisitus wrote:
[top-posting fixed]
No particular reason (other than the fact that I didn't know they
existed :) ). I am one of those programmers who like to jump in at the
deep end and get my hands dirty - the downside is that I sometimes miss
the obvious - thanks for pointing it out.

One of the first deep places into which you should
jump is the documentation ...

An electrical engineer I once worked alongside would
look at the way we programmers worked, shake his head,
and say "Random punches in random card columns [this was
a while ago ...], then debug." If you don't feel like
demonstrating the truth of his aspersion, RTFM!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top