Results 1 to 2 of 2

Thread: How to Re-dimension Multi-dimension Arrays ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    110

    How to Re-dimension Multi-dimension Arrays ?

    How to Re-dimension Multi-dimension Arrays ?

    I heard its lil tricky, but couldnt find a good example and explaination for the same.


    Also are the below two declarations valid ones for Multi-dimensional arrays ? If yes then whats the difference between them ?

    int [][] myArray1 = new int[3][];
    int [ , ] myArray2 = new int[3 , 1];
    Anis Bombaywala

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    The first example is an array of arrays and the second is a normal multi-dim array.
    I don't live here any more.

Posting Permissions

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



Click Here to Expand Forum to Full Width