34,333
edits
Changes
→Assigning Values to Individual Array Elements
== Assigning Values to Individual Array Elements ==
Once an array has been declared it is often necessary to change the value of a particular array element. This is performed by referencing the array and the ''index'' of the element to be changed (keeping in mind that the first element of an array is index position 0).
For example, to change the value of the first element of a String array:
<pre>
strColors(0) = "Orange"
</pre>
Similarly, to change the second value of an Integer array:
<pre>