9- The Comparator Interface

3:51 2 Głośniki 1 Rozdziały 99 segmenty

Rozdziały

  1. 0:03

    So you have learned how to sort objects by implementing the comparable interface. Now, this implementation is not very flexible because it's always comparing customers by their name. What if tomorrow we introduce new fields like email, addr…