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;
I only need the first part of the string, that's why I return the first item. I ask because I noticed in the API that
. means any character, so now I'm stuck.