Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    1,820

    Re: computeWinnings()

    So, take a lesson: If doing that does the wrong thing, then (wait for it...wait for it...OK, here it is...) don't do that!

    Just use your cascade of if(){}else{} statements to return the correct...
  2. Replies
    18
    Views
    1,820

    Re: computeWinnings()

    static int getPayMultiplier(String s1, String s2, String s3)
    {
    int cherryCnt = 0;
    if(s1.equals("CHERRIES"))
    {
    return cherryCnt++; //<--- From Zaphod_b: Huh? Returns 0
    }
    ...
Results 1 to 2 of 2