Joanne Neal wrote:And even if you fix those, I suspect you still won't get that output from that code (although that is based on just looking at the code, not running it, so I may be wrong).
No, you shouldn’t; the middle pair of () is redundant because the dot operator has a higher precedence than the bang operator !. You can use the () if you wish, but they are not necessary. If you were using && as well, you might need () because bang has a higher precedence than &&.
lee shotwell wrote: . . . I should bracket "not equal" like this: if(!(s1.equals("CHERRIES"))) . . .
lee shotwell wrote:My problem has been with the CHERRIES and making sure that a payout occurs only when they appear in the above positions. The second problem: If the CHERRIES appear in the correct position, my method must count them correctly so that the payout is correct.
lee shotwell wrote:I was never able to perfect my card counting in the game of blackjack, especially when the dealer was using a shoe containing several decks.
Nothing miraculous. If you do it right, it will work.
lee shotwell wrote:. . . A miracle occurred,. . . .
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat