Java中的String类提供了一个substringint from, int to)方法用于截取字符串中位置为from到to-1位置的字符。 因为字符串的字符位置是从0开始的,而substring … Continue reading java截取字符串后几位字符Java截取字符串
Java中的String类提供了一个substringint from, int to)方法用于截取字符串中位置为from到to-1位置的字符。 因为字符串的字符位置是从0开始的,而substring … Continue reading java截取字符串后几位字符Java截取字符串