Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java matrix index

843785Oct 9 2008 — edited Oct 10 2008
Hello,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2008
Added on Oct 9 2008
14 comments
218 views