src/main/java/com/webcheckers/appl/PlayerLobby.java
public static boolean isValidUsername(String username){
        // Goes character by character checking the character against the
        // range of the ascii characters
        for (char character : username.toCharArray()){
            int ascii=(int)(character);
            if(!((ascii>=48 && ascii<=57) || (ascii >=65 && ascii <= 90) ||
                    (ascii >=97 && ascii <=122))){
                return false;
            }
        }
        return true;
    }
/**
     * Authenticates a username by checking that it is only alphanumeric
     * @param username The username String
     * @return whether or not the username is valid
     */
Authenticates a username by checking that it is only alphanumeric
@param username The username String
@return whether or not the username is valid
Authenticates a username by checking that it is only alphanumeric @param username The username String @return whether or not the username is valid
public static boolean isValidUsername(String username){
        for (char character : username.toCharArray()){
            int ascii=(int)(character);
            if(!((ascii>=48 && ascii<=57) || (ascii >=65 && ascii <= 90) ||
                    (ascii >=97 && ascii <=122))){
                return false;
            }
        }
        return true;
    }
public static boolean isValidUsername ( String username ) { for ( char character : username . toCharArray ( ) ) { int ascii = ( int ) ( character ) ; if ( ! ( ( ascii >= 48 && ascii <= 57 ) || ( ascii >= 65 && ascii <= 90 ) || ( ascii >= 97 && ascii <= 122 ) ) ) { return false ; } } return true ; }
Authenticates a username by checking that it is only alphanumeric
 @param username The username String
 @return whether or not the username is valid
Authenticates a username by checking that it is only alphanumeric @param username The username String @return whether or not the username is valid
// Goes character by character checking the character against the
 // range of the ascii characters
