Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,964

    Re: help needed

    A rectangular 2 dimensional array simply means that every row has the same number of elements. ex:

    1 2 3 4 5 6
    2 3 4 5 6 7
    3 4 5 6 7 8
    1 2 3 4 5 6

    this is rectangular because every row has 6...
  2. Replies
    4
    Views
    1,964

    Re: help needed

    you're checking the lengths incorrectly. The .length field only returns the length for that dimension.

    ex.


    int[][] myMatrix = new int[5][10];
    System.out.println("there are " +...
Results 1 to 2 of 2