Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Multidimensional array uses

  1. #1
    Join Date
    Feb 2013
    Thanked 6 Times in 6 Posts

    Default Multidimensional array uses

    Multidimensional arrays can have any number of dimensions to them, from int[][] to int[][][][]. I understand how a multidimensional array with 2, 3 and 4 dimensions can be used practically but what are the practical uses to multidimensional arrays such as, int[][][][][][][][] test; ? Also, is there a limit as to how many dimensions an array could have, or could 1 multidimensional array of, say, 50 dimensions, be so large it crashes the IDE (or even the computer)?

  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    My Mood
    Thanked 263 Times in 232 Posts

    Default Re: Multidimensional array uses

    Quote Originally Posted by SunshineInABag View Post
    ...be so large it crashes the IDE (or even the computer)?
    pretty much.. The JVM should prevent the computer from crashing if your program gets memory hungry.

Similar Threads

  1. types in a multidimensional array
    By hannah87 in forum Java Theory & Questions
    Replies: 1
    Last Post: February 22nd, 2013, 08:23 AM
  2. [SOLVED] adding to a multidimensional array.
    By Scotty in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 27th, 2011, 10:09 AM
  3. multidimensional array 'advancing'?
    By kitube in forum Java Theory & Questions
    Replies: 5
    Last Post: January 25th, 2011, 02:23 PM
  4. Need help in multidimensional array
    By Stefan_Lam in forum Algorithms & Recursion
    Replies: 3
    Last Post: January 14th, 2010, 08:52 PM
  5. Looping through a multidimensional array
    By MysticDeath in forum Loops & Control Statements
    Replies: 2
    Last Post: October 11th, 2009, 05:41 PM