I\'m validating user input from a form.
I parse the input with NumberFormat, but it is evil and allow almost anything. Is there any way to parse number more strict?
Take a look at DecimalFormat that is a subclass of NumberFormat http://docs.oracle.com/javase/6/docs/api/java/text/DecimalFormat.html
DecimalFormat myFormatter = new DecimalFormat("###.###");