Java tutorial
//package com.java2s; public class Main { /** * Check if a string is valid for username and password * @param string * the string input * * @return * true or false */ public static boolean checkValidNameOrPassword(String string) { return string.length() >= 8; } }