validation - Validating input using java.util.Scanner - Stack Overflow
I'm taking user input from System.in using a java.util.Scanner. I need to validate the input for things like: It must be a non-negative number It must be an alphabetical letter ... etc What ......