Results 1 to 2 of 2
  1. #1
    barney is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Help with array multi-dimensional

    Hi, I've tried an ArrayList, and it's dynamic, but I can't make it multi-dimensional!

    Is it possible to have an array of 2 dimensions that has the first dimension dynamic?
    Java Code:
     [x][0], [x][1]

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    You will have to use a collection for the first dimension.

Similar Threads

  1. How to initialize a two dimensional Array
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-14-2008, 08:48 PM
  2. 2 dimensional Lists
    By gapper in forum New To Java
    Replies: 4
    Last Post: 01-20-2008, 09:01 AM
  3. Replies: 2
    Last Post: 01-07-2008, 07:45 PM
  4. Adding numbers in a 2 dimensional array
    By j0shizabeast in forum New To Java
    Replies: 2
    Last Post: 11-27-2007, 04:31 AM
  5. How come multi thread don't look like it?
    By jkhoa in forum Threads and Synchronization
    Replies: 1
    Last Post: 09-22-2007, 04:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts