> whats the difference between comparable and
> comparator?
Comparable is from the java.lang package, Comparator from java.util.
> when must i use comparable, and when must i use
> comparator?
Here's a tutorial on both:
http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html