Originally Posted by
computercoder
So far Ive been trying to use a loop. However now I cant figure out how to make sure that if it finds a number quit immedietly without showing the message that there needs to be a number, in addition to not showing the message until it finishes checking the whole password(aka input)
Branching Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
But what happens if the user enters a password that is all digits? And don't you want to accept a password that includes both letters and punctuation, but not digits?
You could also check out
Pattern (Java Platform SE 6)