
public class Country{ string countryName; string location; int population; double area; }
a.write a java statement to create an array of 10 country objects called mycountry using the Country class.
b.Assuming that the getter and setter methods are already defined in the Country class, write a method called checkPopulation which should display all countries whose population that are less than 500000.
c. write one statement which will enable a countries' population to be updated. use the variable updatedPop in your answer.
d. write a method called displayAreas() which will display all the country's names and its area.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.