int length() 返回當前字串的長度 int indexOf(int ch) 查詢ch字元在該字串中第一次出現的位置 int indexOf(String str) 查詢str子字串在該字串中第一次出現的位置 int lastIndexOf(String str) 查詢str子字串在該字串中最後一次出現的位置 int lastIndexOf(int ch) 查詢ch字元在該字串中最後一次出現的位置 String substring(int beginIndex) 獲取從beginIndex位置開始到結束的子字串