0

how to remove negative sign (-) from a String?

how to remove negative sign (-) from a String?

30th Jul 2020, 3:06 PM
Yahel
Yahel - avatar
8 Answers
+ 5
Java string function replace("-", "")
30th Jul 2020, 3:10 PM
Sandra Meyer
Sandra Meyer - avatar
+ 2
I did thousands times, and it works... Did you assign the result of the string function to any variable? (Most common error)
30th Jul 2020, 3:13 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
~ swim ~ yes, that's what I did at the end..
30th Jul 2020, 3:24 PM
Yahel
Yahel - avatar
0
It doesn't work... try it yourself Sandra Meyer
30th Jul 2020, 3:12 PM
Yahel
Yahel - avatar
0
nevermind.. i made it.. thanks for helping!
30th Jul 2020, 3:17 PM
Yahel
Yahel - avatar