阅读背景:

为什么ArrayList的排序方法比Java中的Arrays更快?

来源:互联网 

The goal of the following code is to sort 300,000 int numbers. I find that the duration of ArrayList's sort() is less than Arrays' sort(). Internally, they use the same algorithm to sort. ArrayList uses Arrays' sort() to sort its element data.The goal of the following code is to sort 300,0




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: