I have a string like this:
开发者_如何学运维string Fname = name - shiva;
While assigning to the other string I need remove the -
in between.
Can anybody help me out?
Did you mean that you have something like this:
string Fname = "name - shiva";
In any case, try:
myString.replace("-", "")
You can customize as needed to meet your needs...
精彩评论