hello, If you used jdk 1.5+, you will can try the String method replace (link below), this way, all comma separator in the number will be change in dot separators. Take care with numbers that contains dot separtor as decimal before execute this one.
http://download.oracle.com/javase/6/docs/api/java/lang/String.html#replace%28java.lang.CharSequence,%20java.lang.CharSequence%29 regards, Wescley 2011/7/16 Rafał Laczek <rafal_lac...@wp.pl> > Hi Colleagues, > > In my application I have input string field. > String resultStr is parsed into double. > The problem is when resultStr is with "comma" eg. 2,3 instead of 2.3 (with > dot). > Can I solve it in any way? > Bellow is my current code. > double resultDoub =Double.parseDouble(resultStr); > > Thanks in advance for advice. > > Regards, > Rafal > > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en