Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    The validity of the condition: matrix[i][j]==null would depend on the data type of the element in the array.
    object references can hold a null value
    primitive data type elements can not.
    For...
  2. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    I don't "of course" any code that an OP posts. There are so many different ways to write code that I don't try to guess the problem after seeing 3 lines of code doesn't show what the rest of the...
  3. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    What is matrix.length[i] ?
  4. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    You need to look at each row (in a loop) to check if any of the rows have elements.
  5. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    What is the value of the variable: elements for the array you just posted?
    Consider: X*0 = 0 & (0 == 0) is true
  6. Replies
    12
    Views
    1,335

    Re: Need help with empty arrays

    What is the value of elements for the array you posted?
Results 1 to 6 of 6