Help with sorting Calendar objects!
So here is what i have in hand:
An Object: Booking(Calendar c1, Calendar c2, Object o1, Object o2)
An ArrayList "bookings"
I have to sort the bookings according to c1 times of them and print them.
Now I would love to use this Collections.sort() thing, but i guess its not possible with this list.
Do I have to make a sorting method manually ? Any quick ideas ?
Re: Help with sorting Calendar objects!
Why not? Just write a class that implements Comparable, implemented as you want to sort. See Object Ordering