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