I have sorted AllayList with Objects refer to my previous post How to sort and get highest value from Java Object/ArrayList
ArrayList<> allStudents = new ArrayList();
allStudents.add(new Student("H", 99, 93) );
allStudents.add(new Student("C", 98, 92) );
allStudents.add(new Student("B", 98, 91) );
allStudents.add(new Student("A", 80, 94) );
allStudents.add(new Student("F", 70, 84) );
Now in step1: I want to fetch anyone (randomly select any object) of them else the first highest(that is "H"), then edit numbers then save it back. step2: I want to to fetch anyone (randomly select any object) of them else the second highest(that is "C"), then edit numbers then save it back. step3:I want to to fetch anyone (randomly select any object) of them else the third highest(that is "B"), then edit numbers then save it back.
When all 5 will be finished, then the process will start again from step1. In this way I can reduce all student's numbers.
If someone please suggest me how can I do that?