A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
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
author & internet detective
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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Sorting two calendar years
Suggestions for date validation
exam second chances??
Year in Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014