When posting code, please use code tags next time (see: http://forum.java.sun.com/help.jspa?sec=formatting).
public void updateDetails(int[][] IDAndNumber) {
for(int r = 0; r < IDAndNumber.length; r++) {
int[] row = IDAndNumber[r];
// do something with each row
}
}
> > And how are u storing ur data in the 2D array...?
> > I think single dimensional would be fine
>
> Without knowing how the two dimentional array
> represents his data I don't think you can say this!
If I peer into my crystal ball, I can see hist data structure looks like this:
int[][] array = {
{1, 11},
{2, 22},
{3, 33}
};
where 1,2 and 3 are ID's and 11, 22 and 33 are his numbers.
> > And how are u storing ur data in the 2D array...?
> > I think single dimensional would be fine
>
> Without knowing how the two dimentional array
> represents his data I don't think you can say this!
oops !! my mistake... I thought there is unique number per ID