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

component test 問題集2(Vue2 + TS + Jest+ vue-test-utils)

component test 問題集2(Vue2 + TS + Jest+ vue-test-utils)

GraphQL 學習手冊(繁體書版本)- 了解什麼是 GraphQL

GraphQL 學習手冊(繁體書版本)- 了解什麼是 GraphQL

20210413 wk1 筆記

20210413 wk1 筆記


Comments