On Tue, 25 May 2004, matthew.hawthorne wrote:
Or, for what it's worth:
Date date = date1.compareTo(date2) > 0 date2 : date1;
Only if the dates are not null of course, otherwise it becomes something like :
Date date = null;
if (date1 != null && date 2 != null) {
date = date1.compareTo(date2) > 0 ? date2 : date1;
} else {
date = (date1 == null) ? date2 : date1;
}That's this boiler plate I'd like to reduce to a simple expression.
Emmanuel Bourg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
