I need to fill in this 2D array diagonally and I am not sure how it should look like this. 

[Output](http://imgur.com/StLjf5L)

Here is what I have 

```
for(int i=0; i < matrix.length; i++ )  
    matrix[i][i] = i;

```