开发者

how to omit the - in the string?

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜