implemented to String method
This commit is contained in:
parent
1605bd921a
commit
196ed3ec0f
Binary file not shown.
@ -28,7 +28,21 @@ public enum Suit {
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
//TODO implement
|
||||
return super.toString();
|
||||
switch (this) {
|
||||
case HEARTS:
|
||||
return "♥";
|
||||
|
||||
case DIAMONDS:
|
||||
return "♦";
|
||||
|
||||
case CLUBS:
|
||||
return "♣";
|
||||
|
||||
case SPADES:
|
||||
return "♠";
|
||||
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user