| |

VerySource

 Forgot password?
 Register
Search
View: 727|Reply: 1

What is the difference between sorts of collections?

[Copy link]

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-9-28 14:30:01
| Show all posts |Read mode
What is the difference between collections.sort() and TreeSet sorting, and arraylist sorting? Please let us know!
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-9-29 09:15:01
| Show all posts
collections.sort() implements sorting by implementing the comparable interface
A method similar to b*tree sorting has been implemented inside TreeSet
Arraylist is just a kind of ordinary collection
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list