System.out.println(new DecimalFormat("###,###.##").parse("123123.33"));
System.out.println(new DecimalFormat("###,###.##").parse("123,123.33"));
Both return the same value: 123123.33.
However, in the first case, I need to validate and return with fail.