A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Today (12/10) is CodeRanch Day in
Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
Sorting two calendar years
Joined: Mar 13, 2009
Jun 18, 2009 02:20:33
I need to sort an array list based on two different calendar years.
The information that we get in the current calendar year shoud be displayed first followed by the previous calendar year.
Am unable to sort the information based on the 2 calendar years.
Joined: Oct 27, 2005
Jun 18, 2009 03:02:50
What is in the list?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: May 26, 2003
Jun 18, 2009 19:20:05
One place to start is the Comparator class. It lets you define a specific sort order as being different from the default.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Sorting two calendar years
Year in Java
exam second chances??
Suggestions for date validation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013