Question: Please help me write this code in java, the attached url is continent.txt. :http://www.csd.uwo.ca/courses/CS1027a/assmt1/continent.txt The Continent class The Continent class holds information about the names
Please help me write this code in java, the attached url is continent.txt. :http://www.csd.uwo.ca/courses/CS1027a/assmt1/continent.txt
The Continent class The Continent class holds information about the names of countries on various continents, via the private variables countryName: the name of the country (a string) and continentName: the name of the continent that country is on (a string) and the methods: A constructor method, Continent, that creates an instance of the class (an object) Getter methods: getCountryName and getContinentName allows one to access the country and continent names of an object. . Setter methods: setCountryName and setContinentName allows one to set the continent and continent names of an object from their parameter values toString: returns a string containing the values of an instance of the class. This string is pretty printed using String ormat as discussed above or the Country class The data for this class is stored in the file continent.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
