How to replace element if exists in an ArrayList at a given index?
An element is over-written if it already exists at an index, that is the default behaviour: Javadoc.
Or am I missing your point completely?