/*
* 按照物件導向的思想對字串進行功能分類。
* "abcd"
*
* 1,獲取:
* 1.1 獲取字串中字元的個數(長度).
* int length();
* 1.2 根據位置獲取字元。
* char charAt(int index);
* 1.3 根據字元獲取在字串中的第一次出現的位置.
* int indexOf(int ch)
* int indexOf(int ch,int fromIndex):從指定位置進行ch的查詢第一次出現位置
* int indexOf(String str);
* int indexOf(String str,int fromIndex);
* 根據字串獲取在字串中的第一次出現的位置.
* int lastIndexOf(int ch)
* int lastIndexOf(int ch,int fromIndex):從指定位置進行ch的查詢第一次出現位置
* int lastIndexOf(String str);
* int lastIndexOf(String str,int fromIndex);
* 1.4 獲取字串中一部分字串。也叫子串.
* String substring(int beginIndex, int endIndex)//包含begin 不包含end 。
* String substring(int beginIndex);
*
*
*
* 2,轉換。
* 2.1 將字串變成字串陣列(字串的切割)
* String[] split(String regex):涉及到正規表示式.
* 2.2 將字串變成字元陣列。
* char[] toCharArray();
* 2.3 將字串變成位元組陣列。
* byte[] getBytes();
* 2.4 將字串中的字母轉成大小寫。
* String toUpperCase():大寫
* String toLowerCase():小寫
* 2.5 將字串中的內容進行替換
* String replace(char oldch,char newch);
* String replace(String s1,String s2);
* 2.6 將字串兩端的空格去除。
* String trim();
* 2.7 將字串進行連線 。
* String concat(string);
*
* 3,判斷
* 3.1 兩個字串內容是否相同啊?
* boolean equals(Object obj);
* boolean equalsIgnoreCase(string str);忽略大寫比較字串內容。
* 3.2 字串中是否包含指定字串?
* boolean contains(string str);
* 3.3 字串是否以指定字串開頭。是否以指定字串結尾。
* boolean startsWith(string);
* boolean endsWith(string);
*
* 4,比較。
*
*/