|
-
Sep 27th, 2007, 01:08 AM
#1
Thread Starter
Lively Member
[RESOLVED] an array index reference..
hi all,
i'm jst struggling with a fundermental problem with the addressing method of a 2-D array. it's very simple problem but i've jst been unable to find the solution ..
the problem is...
im having a 2-D array of integer..
int[][] myArray = new int[5][10];
and i need to refer one whole row at once... say to refer the 2nd whole row...
how could i do it?
it's giving an error when i use " myArray[1] " to refer the 2nd row.
could you pls help me to solve this problem...
thanking in advance.
bye
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|