Search:

Type: Posts; User: helloworld922

Search: Search took 0.20 seconds.

  1. Replies
    36
    Views
    5,773

    [SOLVED] Re: Array related assignment

    you're trying to print out information before it's initialized. Move the print statement outside the for loop

    for(int i = 1; i <= my2dArray.length; i++)
    {
    my2dArray[i-1] = new int[i];
    }...
  2. Replies
    36
    Views
    5,773

    [SOLVED] Re: Array related assignment

    If you want a multi-dimensional arraylist, see the tips and tricks section (you might have to do a search for it). The basic premise is this, though: A multi-dimensional array is just an array of...
Results 1 to 2 of 2