String a="showRunningAll();window.location='../../../../../SISEWeb/pub/studentstatus/studentBalanceAction.do?method=doStudentQuery&gzcode=q2An2BULSzE3GXHlT2tNrA=='"我想提取
a的SISEWeb/pub/studentstatus/studentBalanceAction.do?method=doStudentQuery&gzcode=q2An2BULSzE3GXHlT2tNrA=='
这部分 应该怎么操作?
a的SISEWeb/pub/studentstatus/studentBalanceAction.do?method=doStudentQuery&gzcode=q2An2BULSzE3GXHlT2tNrA=='
这部分 应该怎么操作?
意思是把0到最后一个“/”之间的字符去掉,我看别人代码这么写的,自己没用过
String str=a.subString(lastIndexOf("/")+1,str.length-1);
String str=a.subString(lastIndexOf("/")+1,str.length);
String a="showRunningAll();window.location='../../../../../SISEWeb/pub/studentstatus/studentBalanceAction.do?method=doStudentQuery&gzcode=q2An2BULSzE3GXHlT2tNrA=='";
int point=a.indexOf("SISEWeb");
System.out.println(a.substring(point));