Skip to content

Fictionalized/CountryAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Country API

Usage

Get a specific country

final Request request = new Request("country");
final Country country = request.getCountry();

Get all countries

final Request request = new Request();
final Country[] countries = request.getCountries();

Example of country usage, get the capital of a country

final Request request = new Request();
final Country country = request.getCountry();
final String capital = country.getCapital();