Java Prg : To set a different value for a particular position in an ArrayList.

Published --