I want to remove special character like: from a string using java.
How to remove special characters from an string? Anonymous User 2416 04 Oct 2013 I want to remove special character like: - + ^ . : , from a string using java.
Try 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!