代码
提交代码
public class StringSub {
public static void main(String[] args) {
StringBuilder str = new StringBuilder("你好,欢迎来到慕课网");
String substring = str.substring(7);
System.out.println("str截取后子串为:" + substring);
}
}
运行结果