This function sets the value at the location given by the index parameter. It relies on the reflexive methods the Java class Array.
setValueInArray(object, value, index)a java.object that represents an array
the value to be set
the index of the location at which the value is retrieved. Note that in Java the first index is 0