Java tutorial
//package com.java2s; public class Main { public static boolean isPasswordTypeCorrect(String password) { if (password.length() < 6 || password.length() > 12) return false; return true; } }