Programming Question

Question: There is a class Country that has methods getContinent() and getPopulation(). Write a function int getPopulation(List<Country> countries, String continent) that computes the total population of a given continent, given a list of countries and the name of a continent.

From: Cracking the Coding Interview [McDowell]

Subject: Java

Load Another Question


Select a Subject