Use set method to change the value in an array list
import java.util.ArrayList; public class MainClass { public static void main(String[] a) { ArrayList<String> nums = new ArrayList<String>(); nums.clear(); nums.add("One"); nums.add("Two"); nums.add("Three"); System.out.println(nums); nums.set(0, "Uno"); nums.set(1, "Dos"); nums.set(2, "Tres"); System.out.println(nums); } }