Search:

Type: Posts; User: jps

Search: Search took 0.07 seconds.

  1. Replies
    5
    Views
    2,117

    Re: Help with dynamic array method

    You get an error that says .size cannot be resolved because the Object class does not have a size variable visible to your class.

    So long as aThat is of type object, aThat.size will not work. If...
  2. Replies
    5
    Views
    2,117

    Re: Help with dynamic array method

    What did you try casting to what and where in the code did that take place?

    public boolean equals(Object aThat) { // aThat is a DynamicArrayOfInts object
    if(this.size!=aThat.size) { //i...
Results 1 to 2 of 2