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...
Type: Posts; User: Zaphod_b
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...
static int getPayMultiplier(String s1, String s2, String s3)
{
int cherryCnt = 0;
if(s1.equals("CHERRIES"))
{
return cherryCnt++; //<--- From Zaphod_b: Huh? Returns 0
}
...