用法:
String a = "abcdefghijk";
String b = i.ssg(a, 2, 6);
//将提示:cdef
syso(b);
String a = "abcdefghijk";
String b = i.ssg(a, 6);
//将提示:ghijk
syso(b);
说明:
根据字符的位置进行截取字符,若失败将变量“b”赋值 null
用法:
String a = "abcdefghijk";
String b = i.ssg(a, 2, 6);
//将提示:cdef
syso(b);
String a = "abcdefghijk";
String b = i.ssg(a, 6);
//将提示:ghijk
syso(b);
说明:
根据字符的位置进行截取字符,若失败将变量“b”赋值 null