Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean checkPassword(String password) {
String format = "^[a-zA-Z0-9]{6,}$";
if (password.matches(format)) {
return true;
} else {
return false;
}
}
}