I'm trying to write a program where I want the user to enter a positive whole numbers into the input box. I would also like to throw up a warning if they enter a decimal, letter, or negative number. I know how to do this with the negative condition, but I can't figure out how to do it for a decimal or letter. How do you tell java "if it isn't a whole number warn them? Please help I've been looking everywhere for this answer.