中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

那里有個(gè)人做網(wǎng)站的網(wǎng)址推薦

那里有個(gè)人做網(wǎng)站的,網(wǎng)址推薦,博興網(wǎng)站建設(shè)招聘,備案上個(gè)人網(wǎng)站和企業(yè)網(wǎng)站的區(qū)別文章目錄 一、集合概述二、Collection2.1 List接口2.2 Set接口(不常用)2.2.1 TreeSet 三、Map接口四、Collections工具類五、String六、String類型轉(zhuǎn)換6.1 基本數(shù)據(jù)類型6.2 基本數(shù)據(jù)類型、包裝類 --> String6.3 String與char[]6.4 String與byte[] 一、…

文章目錄

  • 一、集合概述
  • 二、Collection
    • 2.1 List接口
    • 2.2 Set接口(不常用)
      • 2.2.1 TreeSet
  • 三、Map接口
  • 四、Collections工具類
  • 五、String
  • 六、String類型轉(zhuǎn)換
    • 6.1 基本數(shù)據(jù)類型
    • 6.2 基本數(shù)據(jù)類型、包裝類 --> String
    • 6.3 String與char[]
    • 6.4 String與byte[]


一、集合概述

  • Collection接口:單列數(shù)據(jù)
    • List接口:元素有序、可重復(fù)的集合 “動(dòng)態(tài)數(shù)組”
      • ArrayList、LinkedList、Vector
    • Set接口:元素?zé)o序、不可重復(fù)的集合 “集合”
      • HashSet(子類:LinkedHashSet)、TreeSet
  • Map接口:雙列數(shù)據(jù)
    • HashMap、LinkedHashMap、TreeMap、Hashtable、Properties

二、Collection

需重寫equals()

  • add(Objec tobj)
  • addAll(Collection coll)
  • int size()
  • void clear()
  • boolean isEmpty()
  • boolean contains(Object obj)
  • boolean containsAll(Collection c)
  • boolean remove(Object obj)
  • boolean removeAll(Collection coll)
  • boolean retainAll(Collection c):把交集的結(jié)果存在當(dāng)前集合中,不影響c
  • boolean equals(Object obj)
  • Object[] toArray() :轉(zhuǎn)成對(duì)象數(shù)組
  • hashCode():獲取集合對(duì)象的哈希值
  • iterator() : :hasNext()、next()、remove()

2.1 List接口

  • void add(intindex, Object ele)
  • boolean addAll(int index, Collection eles)
  • Object get(int index)
  • int indexOf(Object obj):返回obj在集合中首次出現(xiàn)的位置
  • int lastIndexOf(Object obj): 返回obj在當(dāng)前集合中末次出現(xiàn)的位置
  • Object remove(int index):移除指定index位置的元素,并返回此元素
  • Object set(int index, Object ele)
  • List subList(int fromIndex, int toIndex)

2.2 Set接口(不常用)

Set需重寫hashCode()和equals()
HashSet(子類:LinkedHashSet)無(wú)額外方法,

2.2.1 TreeSet

Comparator comparator() 兩種排序方式:自然排序(實(shí)現(xiàn)Comparable接口) 和 定制排序(Comparator)

三、Map接口

Map中的key用Set來(lái)存放,不允許重復(fù),需重寫hashCode()和equals()方法。

  • Object put(Object key,Object value)
  • void putAll(Map m)
  • Object remove(Object key
  • void clear()
  • Object get(Object key)
  • boolean containsKey(Object key)
  • boolean containsValue(Object value)
  • int size()
  • boolean isEmpty()
  • boolean equals(Object obj)
  • Set keySet()
  • Collection values()
  • Set entrySet()

四、Collections工具類

  • reverse(List)
  • shuffle(List)
  • sort(List)
  • sort(List,Comparator)
  • swap(List,int, int)
  • Object max(Collection)
  • Object max(Collection,Comparator)
  • Object min(Collection)
  • Object min(Collection,Comparator)
  • int frequency(Collection,Object)
  • void copy(List dest,List src)
  • boolean replaceAll(List list,Object oldVal,Object newVal)

五、String

  • int length()
  • char charAt(int index)
  • boolean isEmpty()
  • String toLowerCase()
  • String toUpperCase()
  • String trim()
  • boolean equals(Object obj)
  • boolean equals IgnoreCase(String anotherString)
  • String concat(String str)
  • int compareTo(String anotherString)
  • String substring(int beginIndex)
  • String substring(int beginIndex,int endIndex)
  • boolean endsWith(String suffix)
  • boolean startsWith(String prefix)
  • boolean startsWith(String prefix, int toffset)
  • boolean contains(CharSequence s)
  • int indexOf(String str)
  • int indexOf(String str, int fromIndex)
  • int lastIndexOf(String str)
  • int lastIndexOf(String str, int fromIndex)
  • String replace(char oldChar, char newChar)
  • String replace(CharSequence target, CharSequence replacement)
  • String replaceAll(String regex, String replacement)
  • String replaceFirst(String regex, String replacement)
  • boolean matches(String regex):告知此字符串是否匹配給定的正則表達(dá)式
  • String[] split(String regex)
  • String[] split(String regex, int limit)

六、String類型轉(zhuǎn)換

6.1 基本數(shù)據(jù)類型

String --> 基本數(shù)據(jù)類型、包裝類:調(diào)用包裝類的靜態(tài)方法:parseXxx(str)
int num = Integer.parseInt(str1);

6.2 基本數(shù)據(jù)類型、包裝類 --> String

調(diào)用String重載的valueOf(xxx)
String str2 = String.valueOf(num);

6.3 String與char[]

String --> char[]:
調(diào)用String的toCharArray() char[] charArray = str1.toCharArray();

char[] --> String:
調(diào)用String的構(gòu)造器 String str2 = new String(arr);

6.4 String與byte[]

http://www.risenshineclean.com/news/37098.html

相關(guān)文章:

  • 第一次開票網(wǎng)站建設(shè)怎么開公司如何建立網(wǎng)站
  • 網(wǎng)站開發(fā)通用流程圖廈門seo排名公司
  • 中文網(wǎng)站建設(shè)小組企業(yè)推廣策劃書
  • 大連商城網(wǎng)站制作公司b站免費(fèi)版入口
  • 做電子章網(wǎng)站可以下載新聞視頻的網(wǎng)站
  • 婚紗攝影的網(wǎng)站怎么做什么是百度競(jìng)價(jià)排名服務(wù)
  • 網(wǎng)站內(nèi)鏈?zhǔn)鞘裁?怎么做如何制作一個(gè)簡(jiǎn)單的網(wǎng)頁(yè)
  • 做舞臺(tái)燈光的在哪些網(wǎng)站接訂單呢今日新聞?wù)?0字
  • 怎么做網(wǎng)站的百度排名百度指數(shù)怎么看
  • wordpress密碼漏洞佛山百度seo代理
  • 貴州高端網(wǎng)站建設(shè)網(wǎng)站網(wǎng)址查詢工具
  • 織夢(mèng)網(wǎng)站自助申請(qǐng)友鏈代碼seo建站平臺(tái)哪家好
  • 江蘇省政府門戶網(wǎng)站建設(shè)方案哪個(gè)行業(yè)最需要推廣
  • 如何將自己做的網(wǎng)站導(dǎo)入淘寶百度電腦版網(wǎng)址
  • 天津做網(wǎng)站的360優(yōu)化大師下載
  • 做網(wǎng)站需要什么源碼惠州seo排名公司
  • 網(wǎng)站建設(shè)品牌策劃方案制作網(wǎng)頁(yè)教程
  • 制作網(wǎng)站的軟件主要有灰色詞排名上首頁(yè)
  • 怎樣做代刷網(wǎng)站長(zhǎng)永久免費(fèi)國(guó)外域名注冊(cè)
  • 正能量網(wǎng)站窗口免費(fèi)進(jìn)網(wǎng)店推廣方式有哪些
  • 長(zhǎng)春網(wǎng)站建設(shè)電話咨詢海外網(wǎng)絡(luò)推廣平臺(tái)
  • 網(wǎng)站建設(shè)步驟網(wǎng)站推廣方案范例
  • 福州市城鄉(xiāng)建設(shè)局網(wǎng)站人工智能培訓(xùn)班
  • 推拿網(wǎng)站制作長(zhǎng)春網(wǎng)絡(luò)科技公司排名
  • 高端網(wǎng)站開發(fā)程推廣賺錢的微信小程序
  • 電子商務(wù)網(wǎng)站建設(shè)與管理 教案2345網(wǎng)址導(dǎo)航官方網(wǎng)站
  • 做搜狗pc網(wǎng)站網(wǎng)站seo標(biāo)題優(yōu)化技巧
  • 做百度競(jìng)價(jià)網(wǎng)站修改影響排名嗎站長(zhǎng)之家seo概況查詢
  • 金華競(jìng)價(jià)排名 金華企業(yè)網(wǎng)站建設(shè)線上營(yíng)銷活動(dòng)有哪些
  • 如何開發(fā)一個(gè)微網(wǎng)站sem是什么工作