Class Country


  • public class Country
    extends Object
    Represents a country.
    Author:
    Matt Tucker
    • Constructor Detail

      • Country

        public Country​(String code,
                       String name)
        Creates a new Country.
        Parameters:
        code - the country code.
        name - the country name.
    • Method Detail

      • getCode

        public String getCode()
        Returns the ISO two-letter country code of this country.
        Returns:
        the country code.
      • getName

        public String getName()
        Returns the name of this country.
        Returns:
        the country name.