Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean add(Continent continent, Country country) {
- if (continent == null || country == null) {
- return false;
- }
- if (!continents.containsKey(continent)) {
- continents.put(continent, new CountryUnionImpl());
- }
- return continents.get(continent).add(country);
- }
Add Comment
Please, Sign In to add comment