I want to get data from this API: http://countryapi.gear.host/v1/Country/getCountries. I need that user can write name of the Country
in JTextField
and get NativeName
and CurrencyCode
in JTextArea
.
I have such a code, it returns data only for Country which I write in HttpGet: HttpGet request = new HttpGet("http://countryapi.gear.host/v1/Country/getCountries?pName=Australia");
.
But how can I do that user can write the Country and get info for it which he wants?