Search:

Type: Posts; User: Junky

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    1,030

    Re: Determine source "event" from 2 objects.

    Simply call the method and use the returned value (the head count) in the while loop or if statement.
  2. Replies
    5
    Views
    1,030

    Re: Determine source "event" from 2 objects.

    You could use an if statement: if coin1 has 3 heads print coin one wins else print coin two wins. Up for debate: should headCount be a instance variable of Coin?
Results 1 to 2 of 2