Remove n number of dot(.) from String in Java -
this question has answer here:
i have following string , want remove dynamic number of dot(.) @ end of string.
"abc....."
dot(.) can more one
try this. uses regular expression replace dots @ end of string empty strings.
yourstring.replaceall("\\.+$", "");
Comments
Post a Comment