Title: Comparator List Sorting - Narayana Tutorial
Open Graph Title: Comparator List Sorting - Narayana Tutorial
Open Graph Description: Comparator List Sorting In this example showing how to sort objects in the List by using a comparator. Primitive Type List, Wrapper Classes Type List can be sorted by using the Collection.sort(), but Object type List can’t be sorted. To achieve this we can use either Comparator and Comparable. Comparator A Comparator interface is […]
Opengraph URL: https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting
Domain: narayanatutorial.com
{"@context":"https://schema.org","@graph":[{"@type":"Article","@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting#article","isPartOf":{"@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting"},"author":{"name":"Narayanaswamy","@id":"https://narayanatutorial.com/#/schema/person/be9a0c187795e27a6b49a0bb381ab3a8"},"headline":"Comparator List Sorting","datePublished":"2020-03-19T17:33:42+00:00","dateModified":"2020-03-21T02:04:51+00:00","mainEntityOfPage":{"@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting"},"wordCount":104,"commentCount":0,"keywords":["comparator","list","sorting"],"articleSection":["Java Concepts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting#respond"]}]},{"@type":"WebPage","@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting","url":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting","name":"Comparator List Sorting - Narayana Tutorial","isPartOf":{"@id":"https://narayanatutorial.com/#website"},"datePublished":"2020-03-19T17:33:42+00:00","dateModified":"2020-03-21T02:04:51+00:00","author":{"@id":"https://narayanatutorial.com/#/schema/person/be9a0c187795e27a6b49a0bb381ab3a8"},"breadcrumb":{"@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting"]}]},{"@type":"BreadcrumbList","@id":"https://narayanatutorial.com/java-tutorial/java-concepts/comparator-list-sorting#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://narayanatutorial.com/"},{"@type":"ListItem","position":2,"name":"Comparator List Sorting"}]},{"@type":"WebSite","@id":"https://narayanatutorial.com/#website","url":"https://narayanatutorial.com/","name":"Narayana Tutorial","description":"Online Java Tutorial Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://narayanatutorial.com/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https://narayanatutorial.com/#/schema/person/be9a0c187795e27a6b49a0bb381ab3a8","name":"Narayanaswamy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://secure.gravatar.com/avatar/0cef9b8caaebc15caf9efcf12e63575b45ec65725f1521deb916f316eaa1a584?s=96&d=mm&r=g","url":"https://secure.gravatar.com/avatar/0cef9b8caaebc15caf9efcf12e63575b45ec65725f1521deb916f316eaa1a584?s=96&d=mm&r=g","contentUrl":"https://secure.gravatar.com/avatar/0cef9b8caaebc15caf9efcf12e63575b45ec65725f1521deb916f316eaa1a584?s=96&d=mm&r=g","caption":"Narayanaswamy"},"description":"Hello! I am Narayanaswamy founder and admin of narayanatutorial.com. I have been working in the IT industry for more than 12 years. NarayanaTutorial is my web technologies blog. My specialties are Java / J2EE, Spring, Hibernate, Struts, Webservices, PHP, Oracle, MySQL, SQLServer, Web Hosting, Website Development, and IAM(ForgeRock) Specialist I am a self-learner and passionate about training and writing. I am always trying my best to share my knowledge through my blog.","sameAs":["http://www.narayanatutorial.com","https://www.facebook.com/narayanatutorial"],"url":"https://narayanatutorial.com/author/narayanaswamy"}]}
| og:locale | en_US |
| og:type | article |
| og:site_name | Narayana Tutorial |
| article:publisher | https://www.facebook.com/narayanatutorial |
| article:author | https://www.facebook.com/narayanatutorial |
| article:published_time | 2020-03-19T17:33:42+00:00 |
| article:modified_time | 2020-03-21T02:04:51+00:00 |
| og:image | https://narayanatutorial.com/wp-content/uploads/2016/01/logo2.png |
| og:image:width | 220 |
| og:image:height | 169 |
| og:image:type | image/png |
| author | Narayanaswamy |
| twitter:card | summary_large_image |
| twitter:label1 | Written by |
| twitter:data1 | Narayanaswamy |
| twitter:label2 | Est. reading time |
| twitter:data2 | 2 minutes |
| Frontier Theme | 1.3.3 |
| msapplication-TileImage | https://narayanatutorial.com/wp-content/uploads/2016/01/logo2.png |
Links:
Viewport: initial-scale=1.0
Robots: index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1