Hello all!!
Please please help me..Iīve got stuck, and really bad to. I have tried so many different ways now and really donīt know what to do anymore..
I have an assigment for school, the deadline is very very close, that I need some help with. Here is a copy of it:
Write a class called deckOfCards. The class shall be able to create a deck of cards (52 different cards), shuffle the deck and pull the top card from the deck.
Then write a program that uses the class deckOfCards, for example create an object of the class, shuffle the cards and print out the top card with its suit (spades, hearts, diamonds, clubs) and value (1-13).
This is what Iīve got so far..feel free to to not use what I have..
Please if there is anyone...Code:public class Card {
private CardSuit s;
private CardValue v;
public Card(CardSuit suit, CardValue value) {
s = suit;
v = value;
}
public CardSuit suit() {
return s;
}
public CardValue value() {
return v;
}
public String toString() {
return f.toString() + " " + s.toString();
}
}

