I want to change an element name in an ArrayList, without changing its value. Like :-
ArrayList array1 = new ArrayList<>(); int num = 1;