Answers for "Print the string after the specified character java"

0

Print the string after the specified character java

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

Code answers related to "Print the string after the specified character java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language