Java Substring po ostatnim charakterze

String example = "/abc/def/ghfj.doc";
System.out.println(example.substring(example.lastIndexOf("/") + 1));
Functional Platypus