Sign in
Log inSign up

Can someone help me understand the following concepts from Java Collection API?

Honey Khandelwal's photo
Honey Khandelwal
·Jul 28, 2017
  • How does Collection.sort() work in Java?
  • What roles do Comparable and Comparator play in sorting?
  • How can I implement Collection.sort() in my program?

I am having tough time understanding above concepts. Please help me in understanding these concepts.If possible give examples.

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct