[java] How to replace existing value of ArrayList element in Java