How to remove special characters from an string? Anonymous User197204-Oct-2013I want to remove special character like:-+^.:,from a string using java.javajava Updated on 04-Oct-2013
Anonymous User
04-Oct-2013Try replaceAll() method of the String class.
BTW here is the method, return type and parameters.
Example:
It should remove all the {'^', '+', '-'} chars that you wanted to remove!
Anonymous User
04-Oct-2013