tag:blogger.com,1999:blog-694855878384792308.post3018212107655192151..comments2024-03-21T06:26:49.387-07:00Comments on Java67: 6 Advanced Comparator and Comparable Examples in Java 8javin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-694855878384792308.post-9978326864749334112022-11-06T01:07:41.191-08:002022-11-06T01:07:41.191-08:00I might have missed it... but what to do not if th...I might have missed it... but what to do not if the book object is null but the author is null. I.e. if an instance variable being compared is null. I am still getting null exceptions. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-91272294237344505202021-09-16T01:50:44.714-07:002021-09-16T01:50:44.714-07:00Can you add a section to sort objects on multiple ...Can you add a section to sort objects on multiple fields where one field is sorted on reverse order? For example, you need to sort Employee object on name and then age on reverse order, which means oldest firstAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-51910931380798349422021-08-10T10:10:12.434-07:002021-08-10T10:10:12.434-07:00Very Good articleVery Good articleChandrunoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-62651849055565755772021-01-12T18:41:28.854-08:002021-01-12T18:41:28.854-08:00Thanks Anonymous, glad you find this comparator ex...Thanks Anonymous, glad you find this comparator examples useful. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-36752632473580248982021-01-12T11:20:20.145-08:002021-01-12T11:20:20.145-08:00good articlegood articleAnonymousnoreply@blogger.com