📜  字符后的java子字符串 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:12.978000             🧑  作者: Mango

代码示例1
String example = "/abc/def/ghfj.doc";
System.out.println(example.substring(example.lastIndexOf("/") + 1));