0 votes
1 view
in Java by (9.2k 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 (19k 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.4k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...