for ( int i = 0; i < aString.length(); i++ ) { char c = aString.charAt( i ); if ( Character.isISOControl( c ) ) { return false; } } return true;
for ( int i = 0; i < aString.length(); i++ ) { char c = aString.charAt( i ); if ( !Character.isLetterOrDigit( c ) ) { return false; } } return true;
for ( int i = 0; i < aString.length(); i++ ) { char c = aString.charAt( i ); if ( !Character.isDigit( c ) ) { return false; } } return true;