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.
scratchy999
0
Newbie Poster
jon.kiparsky
326
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.