Hello, Im looking for an example of how to throw an exception for an input string that;

rejects characters in the alphabet such as "abc..."
and only accepts numbers in the form of "1 2 3.."

Im fairly new to java and Im just looking for a solid example of this code.

-Nelson