Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Card
- {
- private final String value;
- private final String color;
- public Card(String value, String color)
- {
- this.value = value;
- this.color = color;
- }
- public String toString()
- {
- return value + " of " + color;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement