Problem splitting a string
I am trying to split up a filename into parts:
My output is:
String filename = file.getName();
String parts = filename.split(".");
Then I get an indexoutOfBounds exception when trying to print out parts.
I even went so far as to iterate over each character in the filename string and keep a count of the "." instances, and it gives me back a 1 so I know it recognizes the period...not sure whats going on.