The full error is:

`java.lang.ArrayIndexOutOfBoundsException: 7 at Taskone.main(Taskone.java:15)`

My full code is:

```
import java.io.*;

public class Taskone
{
    public static void main(String[] args) throws IOException
    {
        int experiments = 10;
        int[] arrayone = new int[ 14 ];
        Die die = new Die();

        for(int i=0; i<experiments ;i++) {
            int d1 = die.roll();
            int d2 = die.roll();
            int dT = d2 + d1 ;
            arrayone[dT]++; //Line which throws the exception

        }

        for(int j=0; j<arrayone.length; j++) {
            System.out.println("The amount of " + j + " rolled as a combination of two dice is: " + arrayone[j]); 

        }

    }

}

```

My die code:

```
public class Die
{
    int roll()
    {
        double x = Math.random();
        x = 1.0 + (x * 6.0);
        int outcome = (int)Math.floor(x);

        return outcome;
    }    
}

```

I'm not really sure why I'm getting this error though I can see i'm being told it's the line `arrayone[dT]++;` which is causing the error.
Can somebody please point me in the right direction and correct me?