Good evening!
Can you please tell Onclick(...) how to call the ArrayList method that was created in the OnCreate(...) method from the Onclick(...) method?
So far I have done this:
OnCreate (...) :
ArrayList<Integer> Arrayl = new ArrayList<>(); for (int a = 1; a < 8; a++) { Arrayl.add(a); } Collections.shuffle(Arrayl);// перемешиваем In Onclick (...) :
int actvopros= Arrayl.get(0); //и такое обращение не работает