public class GitHubClient {
private String s1 = "abc"
public List<Item> search(double lat, double lon, String keyword) {
// omit code using GitHub client to request info
String responseBody = EntityUtils.toString(entity);
JSONArray array = new JSONArray(responseBody);
// can I call the method without an object
return getItemList(array);
}
private static List<Item> getItemList(JSONArray array) {
// helper function to filter the search result
}
}