substring() 方法返回字符串的子字符串數組
public String substring(int beginIndex)spa
public String substring(int beginIndex, int endIndex)code
參數 beginIndex起始索引,包括在內;索引從0開始索引
endIndex結束索引,不包括。字符串
split()把一個字符串分割成字符串數組string
trim() 方法用於刪除字符串的頭尾空白符it
substring() 方法返回字符串的子字符串數組
public String substring(int beginIndex)spa
public String substring(int beginIndex, int endIndex)code
參數 beginIndex起始索引,包括在內;索引從0開始索引
endIndex結束索引,不包括。字符串
split()把一個字符串分割成字符串數組string
trim() 方法用於刪除字符串的頭尾空白符it