This readme contains instructions for setting up the code for the interview. It also contains the first question.
Completing this problem before your scheduled interview is optional.
The src
directory contains starter code for your upcoming coding interview.
Prior to your interview, please take some time to ensure you can edit the files and compile the
application.
During the coding interview you will edit the attached solution files in an IDE while sharing your screen.
The code targets Java 11. You can use any IDE or code editor you prefer! Some recommendations are IntelliJ, Eclipse, VSCode, or Notepad++.
If you are unable to use an IDE during the interview, please reach out to the recruiter to discuss options. Your interviewers should be able to accommodate a browser-based option using https://vscode.dev. Using vscode.dev requires signing in with either a GitHub or Microsoft account.
- OpenJDK 11 (if you don't already have Java on your machine!)
- IntelliJ Community Edition (Highly recommended!)
- VS Code with Java support
- Notepad++
- Eclipse
You have been given an object model for a standard deck of 52 playing cards. (Follow links for more explanation of these terms, if you're not familiar with a deck of cards.)
The classes in the object model are:
Deck
: A collection of 52cards
- 52
Cards
: The value of each card is the combinedrank
andsuit
- 13
Ranks
: Numbers 2-10, Jack, Queen, King, and Ace - 4
Suits
: Spades, Hearts, Diamonds, and Clubs - no jokers
A new deck always has the same order for the cards.
The code in App.java
deals all the cards and displays the value (rank & suit) of each.
Requirement: The deck of cards needs to be shuffled a given number of times.
After shuffling, deal all the cards and display the value (rank & suit) of each.