Quick actions

cmd+k|ctrl+k

Navigation

Languages

Card Example 2

Snippet info

Language

Java

Visibility

public

Author

doug

Created

2016-07-20T19:08:28Z

Updated

2016-07-20T21:45:29Z

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);
    }
}
INFO