String字符串截取指定位数前后的数据

String sg ="12312/412"
//截取/之后的内容,包含/可以把indexs+1改为+0
int indexs = sg.indexOf("/");
        String newStr = sg.substring(indexs + 1);
原文地址:https://www.cnblogs.com/yanchaohui/p/11579477.html