Another typical error that most of us make while splitting a string with "." as a delimiter, is not escaping it.
String unsplitString = "abc.def.xyz";
String[] splitStrings = unsplitString.split ("\\.");
Showing posts with label Split a string with "." as a delimiter in Java. Show all posts
Showing posts with label Split a string with "." as a delimiter in Java. Show all posts
Subscribe to:
Posts (Atom)