Download All Country Flags using Java

Hello everyone, In this example I am attaching simple example about, How to Download All Country Flags using Java Program.

This example was done using the API provided by http://www.geognos.com/ service provider. You can visit here to learn more about their API.

#1 Example Code

#2 Downloaded Country Flags

Download All Country Flag using Java

#3 Console Ouput

Andorra Flag is Downloaed Successfully…
United Arab Emirates Flag is Downloaed Successfully…
Afghanistan Flag is Downloaed Successfully…
Antigua and Barbuda Flag is Downloaed Successfully…
Anguilla Flag is Downloaed Successfully…
Albania Flag is Downloaed Successfully…
Armenia Flag is Downloaed Successfully…
Netherlands Antilles Flag is Downloaed Successfully…
Angola Flag is Downloaed Successfully…
Antarctica Flag is Downloaed Successfully…
Argentina Flag is Downloaed Successfully…
American Samoa Flag is Downloaed Successfully…
Austria Flag is Downloaed Successfully…
Australia Flag is Downloaed Successfully…
Aruba Flag is Downloaed Successfully…
OOPS !!! Åland Islands Flag is Not Found
Åland Islands Flag is Downloaed Successfully…
Azerbaijan Flag is Downloaed Successfully…
Bosnia and Herzegovina Flag is Downloaed Successfully…
Barbados Flag is Downloaed Successfully…
Bangladesh Flag is Downloaed Successfully…
Belgium Flag is Downloaed Successfully…
Burkina Faso Flag is Downloaed Successfully…
Bulgaria Flag is Downloaed Successfully…
Bahrain Flag is Downloaed Successfully…
Burundi Flag is Downloaed Successfully…
Benin Flag is Downloaed Successfully…
Saint Barthélemy Flag is Downloaed Successfully…
Bermuda Flag is Downloaed Successfully…
Brunei Flag is Downloaed Successfully…
Bolivia Flag is Downloaed Successfully…
OOPS !!! Bonaire, Sint Eustatius and Saba Flag is Not Found
Bonaire, Sint Eustatius and Saba Flag is Downloaed Successfully…
Brazil Flag is Downloaed Successfully…
Bahamas Flag is Downloaed Successfully…
Bhutan Flag is Downloaed Successfully…
Bouvet Island Flag is Downloaed Successfully…
Botswana Flag is Downloaed Successfully…
Belarus Flag is Downloaed Successfully…
Belize Flag is Downloaed Successfully…
Canada Flag is Downloaed Successfully…
Cocos Islands Flag is Downloaed Successfully…
The Democratic Republic Of Congo Flag is Downloaed Successfully…
Central African Republic Flag is Downloaed Successfully…
Congo Flag is Downloaed Successfully…
Switzerland Flag is Downloaed Successfully…
Côte d’Ivoire Flag is Downloaed Successfully…
Cook Islands Flag is Downloaed Successfully…
Chile Flag is Downloaed Successfully…
Cameroon Flag is Downloaed Successfully…
China Flag is Downloaed Successfully…
Colombia Flag is Downloaed Successfully…
Costa Rica Flag is Downloaed Successfully…
Cuba Flag is Downloaed Successfully…
Cape Verde Flag is Downloaed Successfully…
OOPS !!! Curaçao Flag is Not Found
Curaçao Flag is Downloaed Successfully…
Christmas Island Flag is Downloaed Successfully…
Cyprus Flag is Downloaed Successfully…
Czech Republic Flag is Downloaed Successfully…
Germany Flag is Downloaed Successfully…
Djibouti Flag is Downloaed Successfully…
Denmark Flag is Downloaed Successfully…
Dominica Flag is Downloaed Successfully…
Dominican Republic Flag is Downloaed Successfully…
Algeria Flag is Downloaed Successfully…
Ecuador Flag is Downloaed Successfully…
Estonia Flag is Downloaed Successfully…
Egypt Flag is Downloaed Successfully…
Western Sahara Flag is Downloaed Successfully…
Eritrea Flag is Downloaed Successfully…
Spain Flag is Downloaed Successfully…
Ethiopia Flag is Downloaed Successfully…
Finland Flag is Downloaed Successfully…
Fiji Flag is Downloaed Successfully…
Falkland Islands Flag is Downloaed Successfully…
Micronesia Flag is Downloaed Successfully…
Faroe Islands Flag is Downloaed Successfully…
France Flag is Downloaed Successfully…
Gabon Flag is Downloaed Successfully…
United Kingdom Flag is Downloaed Successfully…
Grenada Flag is Downloaed Successfully…
Georgia Flag is Downloaed Successfully…
OOPS !!! French Guiana Flag is Not Found
French Guiana Flag is Downloaed Successfully…
Guernsey Flag is Downloaed Successfully…
Ghana Flag is Downloaed Successfully…
Gibraltar Flag is Downloaed Successfully…
Greenland Flag is Downloaed Successfully…
Gambia Flag is Downloaed Successfully…
Guinea Flag is Downloaed Successfully…
OOPS !!! Guadeloupe Flag is Not Found
Guadeloupe Flag is Downloaed Successfully…
Equatorial Guinea Flag is Downloaed Successfully…
Greece Flag is Downloaed Successfully…
OOPS !!! South Georgia And The South Sandwich Islands Flag is Not Found
South Georgia And The South Sandwich Islands Flag is Downloaed Successfully…
Guatemala Flag is Downloaed Successfully…
Guam Flag is Downloaed Successfully…
Guinea-Bissau Flag is Downloaed Successfully…
Guyana Flag is Downloaed Successfully…
Hong Kong Flag is Downloaed Successfully…
Heard Island And McDonald Islands Flag is Downloaed Successfully…
Honduras Flag is Downloaed Successfully…
Croatia Flag is Downloaed Successfully…
Haiti Flag is Downloaed Successfully…
Hungary Flag is Downloaed Successfully…
Indonesia Flag is Downloaed Successfully…
Ireland Flag is Downloaed Successfully…
Israel Flag is Downloaed Successfully…
Isle Of Man Flag is Downloaed Successfully…
India Flag is Downloaed Successfully…
British Indian Ocean Territory Flag is Downloaed Successfully…
Iraq Flag is Downloaed Successfully…
Iran Flag is Downloaed Successfully…
Iceland Flag is Downloaed Successfully…
Italy Flag is Downloaed Successfully…
Jersey Flag is Downloaed Successfully…
Jamaica Flag is Downloaed Successfully…
Jordan Flag is Downloaed Successfully…
Japan Flag is Downloaed Successfully…
Kenya Flag is Downloaed Successfully…
Kyrgyzstan Flag is Downloaed Successfully…
Cambodia Flag is Downloaed Successfully…
Kiribati Flag is Downloaed Successfully…
Comoros Flag is Downloaed Successfully…
Saint Kitts And Nevis Flag is Downloaed Successfully…
North Korea Flag is Downloaed Successfully…
South Korea Flag is Downloaed Successfully…
Kuwait Flag is Downloaed Successfully…
Cayman Islands Flag is Downloaed Successfully…
Kazakhstan Flag is Downloaed Successfully…
Laos Flag is Downloaed Successfully…
Lebanon Flag is Downloaed Successfully…
Saint Lucia Flag is Downloaed Successfully…
Liechtenstein Flag is Downloaed Successfully…
Sri Lanka Flag is Downloaed Successfully…
Liberia Flag is Downloaed Successfully…
Lesotho Flag is Downloaed Successfully…
Lithuania Flag is Downloaed Successfully…
Luxembourg Flag is Downloaed Successfully…
Latvia Flag is Downloaed Successfully…
Libya Flag is Downloaed Successfully…
Morocco Flag is Downloaed Successfully…
Monaco Flag is Downloaed Successfully…
Moldova Flag is Downloaed Successfully…
Montenegro Flag is Downloaed Successfully…
Saint Martin Flag is Downloaed Successfully…
Madagascar Flag is Downloaed Successfully…
Marshall Islands Flag is Downloaed Successfully…
Macedonia Flag is Downloaed Successfully…
Mali Flag is Downloaed Successfully…
Myanmar Flag is Downloaed Successfully…
Mongolia Flag is Downloaed Successfully…
Macao Flag is Downloaed Successfully…
Northern Mariana Islands Flag is Downloaed Successfully…
OOPS !!! Martinique Flag is Not Found
Martinique Flag is Downloaed Successfully…
Mauritania Flag is Downloaed Successfully…
Montserrat Flag is Downloaed Successfully…
Malta Flag is Downloaed Successfully…
Mauritius Flag is Downloaed Successfully…
Maldives Flag is Downloaed Successfully…
Malawi Flag is Downloaed Successfully…
Mexico Flag is Downloaed Successfully…
Malaysia Flag is Downloaed Successfully…
Mozambique Flag is Downloaed Successfully…
Namibia Flag is Downloaed Successfully…
New Caledonia Flag is Downloaed Successfully…
Niger Flag is Downloaed Successfully…
Norfolk Island Flag is Downloaed Successfully…
Nigeria Flag is Downloaed Successfully…
Nicaragua Flag is Downloaed Successfully…
Netherlands Flag is Downloaed Successfully…
Norway Flag is Downloaed Successfully…
Nepal Flag is Downloaed Successfully…
Nauru Flag is Downloaed Successfully…
Niue Flag is Downloaed Successfully…
New Zealand Flag is Downloaed Successfully…
Oman Flag is Downloaed Successfully…
Panama Flag is Downloaed Successfully…
Peru Flag is Downloaed Successfully…
French Polynesia Flag is Downloaed Successfully…
Papua New Guinea Flag is Downloaed Successfully…
Philippines Flag is Downloaed Successfully…
Pakistan Flag is Downloaed Successfully…
Poland Flag is Downloaed Successfully…
Saint Pierre And Miquelon Flag is Downloaed Successfully…
Pitcairn Flag is Downloaed Successfully…
Puerto Rico Flag is Downloaed Successfully…
Palestine Flag is Downloaed Successfully…
Portugal Flag is Downloaed Successfully…
Palau Flag is Downloaed Successfully…
Paraguay Flag is Downloaed Successfully…
Qatar Flag is Downloaed Successfully…
OOPS !!! Reunion Flag is Not Found
Reunion Flag is Downloaed Successfully…
Romania Flag is Downloaed Successfully…
Serbia Flag is Downloaed Successfully…
Russia Flag is Downloaed Successfully…
Rwanda Flag is Downloaed Successfully…
Saudi Arabia Flag is Downloaed Successfully…
Solomon Islands Flag is Downloaed Successfully…
Seychelles Flag is Downloaed Successfully…
Sudan Flag is Downloaed Successfully…
Sweden Flag is Downloaed Successfully…
Singapore Flag is Downloaed Successfully…
Saint Helena Flag is Downloaed Successfully…
Slovenia Flag is Downloaed Successfully…
Svalbard And Jan Mayen Flag is Downloaed Successfully…
Slovakia Flag is Downloaed Successfully…
Sierra Leone Flag is Downloaed Successfully…
San Marino Flag is Downloaed Successfully…
Senegal Flag is Downloaed Successfully…
Somalia Flag is Downloaed Successfully…
Suriname Flag is Downloaed Successfully…
OOPS !!! South Sudan Flag is Not Found
South Sudan Flag is Downloaed Successfully…
Sao Tome And Principe Flag is Downloaed Successfully…
El Salvador Flag is Downloaed Successfully…
OOPS !!! Sint Maarten (Dutch part) Flag is Not Found
Sint Maarten (Dutch part) Flag is Downloaed Successfully…
Syria Flag is Downloaed Successfully…
Swaziland Flag is Downloaed Successfully…
Turks And Caicos Islands Flag is Downloaed Successfully…
Chad Flag is Downloaed Successfully…
French Southern Territories Flag is Downloaed Successfully…
Togo Flag is Downloaed Successfully…
Thailand Flag is Downloaed Successfully…
Tajikistan Flag is Downloaed Successfully…
Tokelau Flag is Downloaed Successfully…
Timor-Leste Flag is Downloaed Successfully…
Turkmenistan Flag is Downloaed Successfully…
Tunisia Flag is Downloaed Successfully…
Tonga Flag is Downloaed Successfully…
Turkey Flag is Downloaed Successfully…
Trinidad and Tobago Flag is Downloaed Successfully…
Tuvalu Flag is Downloaed Successfully…
Taiwan Flag is Downloaed Successfully…
Tanzania Flag is Downloaed Successfully…
Ukraine Flag is Downloaed Successfully…
Uganda Flag is Downloaed Successfully…
OOPS !!! United States Minor Outlying Islands Flag is Not Found
United States Minor Outlying Islands Flag is Downloaed Successfully…
United States Flag is Downloaed Successfully…
Uruguay Flag is Downloaed Successfully…
Uzbekistan Flag is Downloaed Successfully…
Vatican Flag is Downloaed Successfully…
Saint Vincent And The Grenadines Flag is Downloaed Successfully…
Venezuela Flag is Downloaed Successfully…
British Virgin Islands Flag is Downloaed Successfully…
U.S. Virgin Islands Flag is Downloaed Successfully…
Vietnam Flag is Downloaed Successfully…
Vanuatu Flag is Downloaed Successfully…
Wallis And Futuna Flag is Downloaed Successfully…
Samoa Flag is Downloaed Successfully…
Yemen Flag is Downloaed Successfully…
Mayotte Flag is Downloaed Successfully…
South Africa Flag is Downloaed Successfully…
Zambia Flag is Downloaed Successfully…
Zimbabwe Flag is Downloaed Successfully…
All Countries Flags are Downloaded Successfully.

References

1. http://www.geognos.com/
2. http://www.geognos.com/geo/en/world-countries-API.html