Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Java by (9.5k points)

I want to sort the linked list alphabetically. The LinkedList I’ve has passengers names and it has to be sorted alphabetically. Can anyone tell me how to do it?

1 Answer

0 votes
by (19.7k points)

Use Collections#sort to sort things alphabetically.

Interested in Java? Check out this Java Certification by Intellipaat. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Oct 30, 2020 in Python by Sudhir_1997 (55.6k points)
0 votes
1 answer

Browse Categories

...