can't get ArrayList outside of for loop in call.enqueue
问题 I want to get ArrayList data out of for loop from call.enqueue method in Retrofit. how to access lists outside of call.enqueue mehtod? Everything is working fine. When printing list size I'm getting value what I want. The only problem is i can't access values from outside of call.enqueue method. private void getSchoolList() { final Call<List<DanceSchool>> call = RetrofitClient.getInstance().getApi().getDanceSchools(); call.enqueue(new Callback<List<DanceSchool>>() { @Override public void