• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
9 views
convert string to double java
by (1.5k points)  
reshown by

1 Answer

0 votes

Java – Convert String to double

the string into double in Java so that
is useful forever especially when you're
using the celery motivation because we
need to verify the output or the amount
sometimes and which contains the special
characters like dollar and the Kaaba
which we do not want in the when we are
verifying the amounts so further you can
use this particular method that I've
created you can pass the amount in the
string format and then what it does is
it replaces all the occurrences of the
dollar and the comma in that and with
the empty spaces with nothing actually
so it removes basically all the dollar
and the comma from the string and then
returns parses it to the double and then
double data drive is written so that's
how we can convert the string or the
currency amount into the double in Java
by (8.9k points)  
...