Search:

Type: Posts; User: GoodbyeWorld

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    859

    Re: Array and Objects trouble

    Not exactly. It seems that setArray() is initializing your array. (It is not filling it, but making memory for the array itself.) Your default constructor doesn't do that so it will be null and...
  2. Replies
    5
    Views
    859

    Re: Array and Objects trouble

    That is because java, I believe, will auto-initialize primitives (it doesn't do that with objects). Since you didn't call fillArray(), the data never got inserted into it, hence it was still in...
  3. Replies
    5
    Views
    859

    Re: Array and Objects trouble

    You're calling the toString() of arrays, which are pretty similar to Object's toString(). It basically returns hash code.

    You're better using a for loop



    double[][] array =...
Results 1 to 3 of 3