I have this char array

```
 char[] E = {'f','e','d','c','b','a'};

```

I would like to know how to set the 3 first values of the array to `'G'`. For example in Matlab I used to do this:

```
F=[1 2 3 4 5 6];
F(1:3) = 9;// F = 9 9 9 4 5 6

```

Well this is an Integer example, but the idea is to set the values without extracting them from the array.