Hi.
First of all, I am new to java and I am having some problems in understanding arrays.
I was asked to do the following program.
2 5 9 8 7
3 4 8 5 3
7 6 9 6 3
8 9 5 3 2
1 3 1 5 6
That is a multidimensional array.
I need to sum the elements from the array that are right from the diagonal
(5 9 8 7 8 5 3 6 3 2)
and
sum the elements from the array that are left from the diagonal
(3 7 6 8 9 5 1 3 1 5)
I know how to sum all the elements from the array, but not certains like in that case.
I want to understand arrays. I would like that you give me just hints of how to do it, not the code itself.
Thanks in advance
PS: Sorry for the English, it isn't my natural language