I am writing a program that can shuffle a deck of cards in different ways. I'm having some trouble in getting the program to imprint suites from one set of 13 to the next. I had it working yesterday. Now all of a sudden it will just print everything all clubs. *scratching head*.
Can anyone help me and point out where the problem is? Any help will be greatly appreciated.
Here is the code I have created below so far....
Sam Thompson wrote:Can anyone help me and point out where the problem is? Any help will be greatly appreciated.
This won't answer your question specifically, but the fact is that StringsAreBad, so I'd strongly suggest that you think of some other way of defining your suits and values.
Oddly enough, the JLS contains an example of just what you want that uses enums. Usually it's pretty dry, but in this case it's actually better than the tutorial example IMO.
Winston
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here