How do you find the diagonal of a matrix in Java