Hi All
Can you please advice me that which option is more preferred in this particular problem:
we have to remove comma (,) from the
string(always conatins a number) before convert it into BigDecimal
option 1: use replaceall() i.e.
str2 = str1.replaceall(",","") ;
BigD = new BinDecimal(str2);
option 2: use numberformat
BigD =new BigDecimal(numberFormat.parse(str1).floatValue());
As far as the requriment concern --> it's a big enterprise application... str1 contain data of finincial range.
please ignore lexical error.
Thanks a lot for giving your time & concern