Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String pw = "aB1!";
- if(pw.contains(a || A || b || B))
- {
- if(pw.contains("1" || "2" || "3" || "4"))
- {
- if(pw.contains("!" || "@" || "#" || "$"))
- {
- console.writeline("Your password is fine!");
- }
- console.writeline("Your password needs at least one special character.");
- }
- console.writeline("Your password needs at least one upper or lower case letter.");
- }
Advertisement
Add Comment
Please, Sign In to add comment