Here are four ways to make it thread-safe! 1️⃣ Collections.synchronizedList () Java provides a built-in way to synchronize an ArrayList: List<Integer> list = Collections.synchronizedList (new ...