Java tutorial
//package com.java2s; public class Main { public static boolean isPasswordValid(CharSequence password) { if (password != null && password.length() >= 6) { return true; } return false; } }