In java how to get substring from a string till a character c? - Stack Overflow
I have a string (which is basically a file name following a naming convention) abc.def.ghi I would like to extract the substring before the first . (ie a dot) In java doc api, I can't seem to ......