I need to read them diagonally. so:
I have managed to get the matrix to start from the reverse diagonal, but always from top to bottom .... I need it to go up and down as seen in the image.
This is what I tried so far:
System.out.println("");
for(int i=0; i<mat.length; i++){
for(int j=mat.length-1, l=i; l<mat.length; j--, l++){
System.out.print(mat[l][j]+" ");
}
System.out.println();
}