Java tutorial
//package com.java2s; public class Main { public static boolean isValidPassword(CharSequence target) { return target != null && target.length() > 5 && target.length() < 17; } }