public static boolean isKnownCountryCode ( String aCountryCode ) { if ( aCountryCode == null || aCountryCode . length ( ) != 2 ) { return false ; } return indexOf ( aCountryCode ) >= 0 ; }
Returns whether the given string is a known country code .