Question: Write a console application called Playing Cards that has 4 classes: Playing Cards, Deck, Cards, Card. This inmammam inmamamm application will be able to

Write a console application called Playing Cards that has 4 classes: Playing Cards, Deck, Cards, Card. This inmammam inmamamm application will be able to create a deck of cards, shuffle it, sort it and print it. Use the following class diagrams to code your application. Use the following code for the PlayingCards class Cards Card Card[] suit: String getCards():Card[] rank: String toString() Deck create() sort() shuffle() showCards() public class Playing Cards{ public static void main(String[] args){ System.out.println("Playings Cards"); Deck deck = new Deck(); www deck.create(); System.out.println("Sorted cards"); deck.sort(); deck.showCards(); System.out.println("Shuffled cards"); deck.shuffle(); deck.showCards(); wwwwwwww } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
