Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 477 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 477 Bytes

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();