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