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

Return lots of stars

Return lots of stars

AngularFirestore 教學 (1) : Document

AngularFirestore 教學 (1) : Document

滲透測試基本技術 第二章(中篇)

滲透測試基本技術 第二章(中篇)


Comments