Search:

Type: Posts; User: curmudgeon

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    1,144

    [SOLVED] Re: comparing objects using compareTo

    Yes, exactly. Then you can call Odometer methods on the od variable or interact directly with od's fields which will allow you to compare its state with that of the current object on which the...
  2. Replies
    3
    Views
    1,144

    [SOLVED] Re: comparing objects using compareTo

    This is meaningless:


    o = (Odometer)o;


    You need to create an Odometer variable that is local to this method, have it refer to o, using a cast to Odometer of course, and use that variable to...
Results 1 to 2 of 2