I am wondering if I am going about splitting a string on a . the right way? My code is:
.
String[] fn = filename.split(\".\"); return fn[0];
The split must be taking regex as a an argument... Simply change "." to "\\."
"."
"\\."