Results 1 to 3 of 3
Thread: two dimensional array
- 10-04-2011, 08:50 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 6
- Rep Power
- 0
two dimensional array
actually i am having a doubt in two dimensional array.
dear frnds,
i want to know how "two dimensional array" works?
how the "two dimensional array" executes step by step?
i will be grateful to u if anybody help me to clarify this doubt.Last edited by sunde887; 10-05-2011 at 04:43 AM. Reason: Don't bold everything
- 10-04-2011, 09:08 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,609
- Rep Power
- 5
Re: two dimensional array
A two-dimensional array doesn't 'execute step by step'. It is an array of arrays. See the following link, and you might wish to post an example piece of code to demonstrate your confusion:
Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
- 10-05-2011, 04:47 AM #3
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Re: two dimensional array
As doWhile said, a 2D array is simply an array such that each element is another array. Similarly, a 2D array is processed in much the same way as a single dimensioned array.
For each element in the array, print it. Since each element in the array is another array, you would need nested loops to cycle through it all. Try setting up some snippets to show yourself how they are processed. It's surprisingly simple.
Similar Threads
-
Help with Two Dimensional Array
By johnjacob in forum New To JavaReplies: 2Last Post: 06-03-2011, 08:22 PM -
2 dimensional array
By sehudson in forum New To JavaReplies: 5Last Post: 02-20-2011, 11:56 PM -
2 dimensional array help!
By ber1023 in forum New To JavaReplies: 9Last Post: 01-02-2011, 12:29 AM -
Two dimensional array
By niu_niu in forum New To JavaReplies: 4Last Post: 06-13-2010, 12:34 AM -
two-dimensional array
By kHim in forum New To JavaReplies: 4Last Post: 11-16-2008, 07:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks