How do I write a java snippet that mimics the game “Blackjack” using a while statement?

Your objective is to beat the dealer's hand (see below)

without going over 21.

Cards dealt (randomly) are between 1 and 11.

You first receive 2 cards, and then are asked

(in a loop) whether you want another card.

You can request as many cards as you like,

one at a time, but don't go over 21.

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.