Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How to shuffle a deck of cards in java?

Asked by Ananya Pawar Oct 6, 2022 890 views 1 answer
Share

About this question

The program interacts between cards and four players among whom cards are to be distributed. The Program do the following function

Creates a deck of cards.

Shuffle the deck.

Shows the deck.

Deal cards equally among four players.

Show the cards of each Player.

Please suggest some better ways of doing this program.

Also suggest new functions and modifications in this program.

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.