Search:

Type: Posts; User: robin_

Search: Search took 0.26 seconds.

  1. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    Oh, thats why... thanks Norm!
  2. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    Yeah you are right, I'm sorry. However I'm still thankful for your help because you made me find the problem when you asked about the variable -elements. I never had the thought of matrix[i].length...
  3. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    Sorry I mean matrix[i].length of course.
  4. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    Well isn't that what I am doing? I'm looking if there is any integer in the matrix, if so. I count +1. And the elements matches the dimension of the matrix. That's why I compare elements with count,...
  5. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    Aha yes sorry. It is 0! I thought it would be 3*1=3 (3 rows, 1 column). Why is that?

    Now I see it's obvious why it returns the value true, since counter==elements is true...
  6. Replies
    12
    Views
    426

    Re: Need help with empty arrays

    What array do you mean? This one below?

    int [][] matrixFalse2 = {{},{},{}};

    The values are nothing, right? I'm just trying to make the user of the program not able to "crash" my program with...
  7. Replies
    12
    Views
    426

    Need help with empty arrays

    Hello

    I'm currently working on a method that is supposed to row reduce a given array. However, before I've started the coding on the row reduction. I'm trying to create a method that can control...
Results 1 to 7 of 7