The simpler the code the better but you have to use his outline:
HIS OUTLINE:
Create a new java project for the card game.
Create the appropriately named package for the java project.
Create two object classes: Card, Deck and a driver class, Main.
Add the shuffle method to the deck class.
Initialize a new integer named nextToDeal at the top of the class and set equal to 0.
Add this method to the Deck class:
Create a new class:
Copy and paste this code under the getPoints() method. Make sure you understand it!
Edit the main method to include the following:
Also given this code earlier and instruction earlier:
Part II: CARD GAME
Using the Card constructor below, implement a Deck Object as described below. Test that the program works as described. When finished, add the following features:
A. Add a method shuffle to the Deck Class. Call the method from the Main class to verify that the deck is indeed shuffled.
B. Add a Hand Class that contains an array of 5 Card references. Have the program Deal the Hand two cards and display them for the user. Tell the user how many points they have and ask them if they would like another card or not. Continue to allow the player to add cards until they reach 5 cards or the total is greater than 21.
C. Adjust the Card class to allow Aces to count as 11 to start. If the Hand Class has a value greater than 21, have the Hand Class check for Aces and reduce their point value to 1.
D. Have the program create a dealer Hand that the user can play against. The user should try to get as close to 21 without going over in an effort to beat the Dealer. If the Dealer has 16 or more the Dealer should stop taking cards.
Here is the code to get you started: