public void setCountryCode ( final String code ) { if ( code . length ( ) != 2 ) { throw new IllegalArgumentException ( "Argument must be a two letter country code." ) ; } this . code = code . toUpperCase ( ) ; this . name = null ; }
Set the two letter country code .