Following is resulting in an Exception:
Exception
String p=\"1,234\"; Double d=Double.valueOf(p); System.out.println(d);
Is there a bet
This would do the job:
Double.parseDouble(p.replace(',','.'));