Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static final String PASSWORD_PATTERN = "^[A-Za-z0-9][_A-Za-z0-9!@#$&]{5,15}$";
public static boolean isPasswordValid(String password) {
return password.matches(PASSWORD_PATTERN);
}
}