Java tutorial
//package com.java2s; public class Main { public static Boolean checTelPhone(String userName) { if (userName.length() >= 7 && userName.length() <= 11) { return true; } return false; } }