java截取字符串substring 直接上代码: String substring(int beginIndex, int endIndex); beginIndex:开始点,最开始为0 endIndex:终结点,可不填