Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java substring after last char

String example = "/abc/def/ghfj.doc";
System.out.println(example.substring(example.lastIndexOf("/") + 1));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #substring #char
ADD COMMENT
Topic
Name
4+9 =