Best way to check if a Java String is a number. An example on how to validate if a String variable in Java has all numeric digits.