跳到主要內容

Collection與Map筆記


Collection -> Iterator -hasNext() -next() -remove()
  • Set 不重複,取值要用foreach
    • HashSet 最基本的set,與輸入順序不同(why?)
      • LinkedHashSet  與輸入順序相同
    • TreeSet 自動排序
  • List 可重複 -> ListIterator較Iterator多了往前走的機制 -hasPrevious() -previous()
    • ArrayList 最基本的list
    • Vector 有thread save機制
Map name value pair
  • HashMap 最基本的HashMap
  • TreeMap 自動排序

留言

這個網誌中的熱門文章

What is phpize

What is phpize According to the PHP official document : The phpize command is used to prepare the build environment for a PHP extension. If you need to build such an extension that from github or another code repositories, you can use  build tools to perform the build manually.