The set method should have an argument that is the value to be used in the set.
To save a value in an array, use an assignment statement:

theArray[theIndex] = theValue;
Change the value of...