Java matrix index
843785Oct 9 2008 — edited Oct 10 2008Hello,
Does any one know how to check the relative indexes of a matrix?.. For example, I want to check the points that has a "p" letter near it in the following matrix in n* m matrix
. . p p
p . . .
. . . .
This should return
1 2 p p
p 2 2 2
1 1 0 0
Anyone have an idea how to solve this problem?
Thanks