1list.set(1,"new value");
2
3//example ..
4
5List<String> list = new ArrayList<>();
6list.add("one");
7list.add("two");
8list.add("three");
9System.out.println(list); // [one,two,three]
10list.set(1,"new");
11System.out.println(list); //[one,new,three]