Найдите самую раннюю дату среди трех датJAVA

Программисты JAVA общаются здесь
Anonymous
Найдите самую раннюю дату среди трех дат

Сообщение Anonymous »


I have three dates in Java: a, b, c. Any or all of these dates may be null. What's the most efficient way of determining the earliest date among a,b,c, without having a massive if-else block? I would want a the actual date that is earliest among a,b,c. Any date is better than a null date.


Источник: https://stackoverflow.com/questions/158 ... ng-3-dates

Вернуться в «JAVA»