You're welcome.
Type: Posts; User: pbrockway2
You're welcome.
Call the class what it is: Pack. The deck.add() stuff belongs in its constructor - what you posted won't compile. (Which might explain compiler's grumbling. Statements have to go inside a method...
Consider making a Pack class to represent a pack of cards. (One class: one thing. Whatever sort of thing this Main class is, it is unlikely it is a pack of cards.)
Then give Pack a shuffle()...