Код: Выделить всё
MainActivity.listOfStudents.set(MainActivity.listOfStudents.indexOf(stuToUpdate), updatedStudent);
Подробнее здесь: [url]https://stackoverflow.com/questions/79157404/how-to-retrieve-position-of-a-given-object-in-an-array-list-in-another-activity[/url]
Мобильная версия