Thursday, March 29, 2012

To replace a character in the String (date) with another character

To replace a character in the String (date) with another character 

String abc = "Sunday 02/10/1986, 12.00"

replace "," with "--" 

abc.replace("," , "--"));

No comments: