Write a toString method for the PlayingCard class that returns a string version of playing card suitable for printing.
public String toString() {
String faceString;
if (face == 1)
faceString = "Ace";
else if (face == 11)
faceString = "Jack";
else if (face == 12)
faceString = "Queen";
else if (face == 13)
faceString = "King";
else
faceString = "" + face;
return faceString + " of " + suit;
}
public String toString() {
String faceString;
switch (face) {
case 1: faceString = "Ace";
break;
case 11: faceString = "Jack";
break;
case 12: faceString = "Queen";
break;
case 13: faceString = "King";
break;
default: faceString = "" + face;
} // end switch
return faceString + " of " + suit;
}