Jun 152017

ADM

How to sort TreeMap in descending order in Java

  • 15 June 2017
  • ADM

How to sort TreeMap in descending order in Java. A simple example using a string as keys.

Feb 042017

ADM

How to sort objects with Comparable and Comparator in Java

  • 04 February 2017
  • ADM

How to sort objects with Comparable and Comparator in Java. Primitive array and list sorting. Java Object sorting with Comparable and Comparator.

Feb 042020

ADM

How to compare dates in Java

  • 04 February 2020
  • ADM

How to compare dates in Java using Date (compareTo, before, after, equals), Calendar(before, after, equals) and LocalDate(isBefore, isAfter, equals) classes.