java check for password that are 1 character only code example Example: password = sdf345 password.isalpha() java >>> password = "sdf345" >>> password.isalpha()