If I get a String
value like
$10
what is the best and concise way of to verify the currency value?
Currently I am using Usual String
Methods like startsWith("$")
and get the rest and change them to Double
value if they are numeric.
If I get a String
value like
$10
what is the best and concise way of to verify the currency value?
Currently I am using Usual String
Methods like startsWith("$")
and get the rest and change them to Double
value if they are numeric.