Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

[JS Behind The Scene] prototype chain-new 在背後到底做了甚麼?

[JS Behind The Scene] prototype chain-new 在背後到底做了甚麼?

 What is a Gruber Retractor? A Vital Tool in Surgical Precision

What is a Gruber Retractor? A Vital Tool in Surgical Precision

CSS保健室|overflow、overflow-x、overflow-y

CSS保健室|overflow、overflow-x、overflow-y


Comments