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

函式原型方法:bind()、call()、apply()

函式原型方法:bind()、call()、apply()

12. Flyweight

12. Flyweight

學習 Git (5) - 檢視 commit 紀錄

學習 Git (5) - 檢視 commit 紀錄


Comments