I. Overview

1. Goal

Sort list of three MyDate(year,month,day) objects.

2. Steps to do

– Implement Comparator interface for the class that you use for handling sorting.
– Override compare(T object1, T object2) method and:
+ return zero if object1 is equalobject2
+ a negative number if object1 is less than object2
+ a positive number if object1 is greater than object2
– Use sort(Comparator) method.

grokonez

ABOUT US
We are passionate engineers in software development by Java Technology & Spring Framework. We believe that creating little good thing with specific orientation everyday can make great influence on the world someday.