Answers for "text before dot java"

1

text before dot java

String filename = "abc.def.ghi";     // full file name
String[] parts = filename.split("\\."); // String array, each element is text between dots

String beforeFirstDot = parts[0];    // Text before the first dot
Posted by: Guest on October-26-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language