Create ValidNumber.java

take advantage of Java's valueOf function to solve the problem...