How to make the program expect to execute call_summoner_id?
public void get_summoner_id(String REGION, final String summoner_name) { final Request request = new Request.Builder().url(this.GETURL.get_url_summoner_by_summoner_name(summoner_name, REGION)).build(); GETCALL.call_summoner_id(request); set_summoner_id(GETCALL.summoner_id); } public void call_summoner_id(Request request){ client.newCall(request).enqueue(new Callback() { @Override public void onFailure(Call call, IOException e) { e.printStackTrace(); listener.onFailure(); } @Override public void onResponse(Call call, Response response) throws IOException { try { Response response_summoner = response; System.out.print(response_summoner); JSONObject json = new JSONObject(response.body().string()); final String new_summoner_id = json.getString("id"); summoner_id = new_summoner_id; } catch (IOException e) { e.printStackTrace(); } catch (JSONException e) { e.printStackTrace(); } } }); }