class Main {
public static void main(String[] args) {
// create an instance of a card and store it in a variable
Card myCard = new Card();
// set two properties of the card
myCard.value = "Jack";
myCard.suit = "Clubs";
// print a description of the card
System.out.println(myCard);
}
}
class Card{
boolean faceUp = true;
String value;
String suit;
public String toString(){
return value + " of " + suit;
}
}