String str = "SF0001_20190520_132_chnnl_id001";
int i = str.lastIndexOf("_");
System.out.println(i);
int a = str.lastIndexOf
截取倒数第二个"/"之后的字符串
最新推荐文章于 2023-01-01 14:35:57 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
String str = "SF0001_20190520_132_chnnl_id001";
int i = str.lastIndexOf("_");
System.out.println(i);
int a = str.lastIndexOf