A good place to start would be to read the javadocs for the the isDigit(char ch) and isLetter(char ch) static methods of the java.lang.Character class.
Using these methods inside of a loop should enable you to verify that a password meets the security requirements defined in your post.