Similar Threads

Anything in particular that confuses you? By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Again this should be moved into methods. Post Your Answer Discard By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies. End the program when the user wants to quit or when she runs out of money. I understand the first two cards in the hand array are to be set to cards[0] and cards[1] how do initialize "cards"??

Re: Blackjack Game

Please critique, simplify, add to...

And what's wrong is that your toSymbol method is apparently using a bad format string, or at least a format string that doesn't match the data that are to be formatted using it.

So look at the format string and read the Javadocs for format specifiers and figure out what you did wrong. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service , privacy policy and cookie policy , and that your continued use of the website is subject to these policies.

I am having a problem testing blackjack java code, this is the following code: Creates fonts and starts the first game. Otherwise, give the user a card. Dealer took 5 cards without going over Dealer wins on a tie. Start a new game. Try cutting out a lot of the code.

Give us just the part that is given you trouble and any other things necessary to understanding it. The wall of code approach is too hard to decifer. What line do you get an error on?

It's not just a wall of code -- it's completely irrelevant code as you're not showing the right class. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center , please edit the question. Of course you will most probably need other methods, but I am sure you can figure them out yourself. How to create a hand class for BlackJack java [closed] Ask Question.

This is my Card class below. I have tried nothing because honestly I dnt know what to do. Then try and come back when you have. I just need to know what logic should be in the hand class. Please use your own brain. Stack Overflow is not a site where you can make requests to implement code for you. I don't get the problem.

Your Answer

Leave a Reply