So basically I have an array I create in the start of my script, 

```
public String[] testarray;

```

Then I later in the script I want to add things to the array:

```
if(testvalue == 1) {
  testarray[0] = "value1";
}

```

This obviously doesn't work. How would I do this?