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

Web開發學習筆記05 — for Loop、while Loop & 遍歷陣列、物件

Web開發學習筆記05 — for Loop、while Loop & 遍歷陣列、物件

Let's get rusty!

Let's get rusty!

Ruby 學習筆記-Symbol(符號)

Ruby 學習筆記-Symbol(符號)


Comments