A generic Java number input validation method and manual tester.  The getNumber method can scan an InputStream and parse and validate any standard Number object type using generics and reflection.