Tuesday, September 20, 2011

Java how to split a string with "." (a dot)

String str = a.split("\\.")[0];

No comments:

Post a Comment