SHARE
TWEET

Untitled

a guest Aug 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Card
  2. {
  3.     private final String value;
  4.     private final String color;
  5.  
  6.  
  7.     public Card(String value, String color)
  8.     {
  9.         this.value = value;
  10.         this.color = color;
  11.     }
  12.     public String toString()
  13.     {
  14.         return value + " of " + color;
  15.     }
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top