Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@

public class App {

//atleast six characters
//one upper case letter
//one lowercase letter
//one number
public static boolean isPasswordComplex(String password) {
return false;

return password.length() >=6
&& password.matches(".*\\d.*")
&& password.matches(".*[a-z].*")
&& password.matches(".*[A-Z].*");

// n
}

public static void main(String[] args) {
Expand Down
Binary file not shown.