implemented to String method
This commit is contained in:
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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user