Thursday, 16 June 2016

Converting the amount from string into double in Java

Below method returns the amount in double format in Java

double getFormattedAmount(String amount){

String digitalAmount = amount.replaceAll("[\$,]","");

return Double.parseDouble(digitalAmount);

}


What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com

No comments:

Post a Comment

Buy Best Selenium Books

Contributors