Answers for "java substring after character"

0

java substring after character

String example = "/abc/def/ghfj.doc";
System.out.println(example.substring(example.lastIndexOf("/") + 1));
Posted by: Guest on May-30-2021

Code answers related to "java substring after character"

Browse Popular Code Answers by Language