question: public static String toString ( int rank , int suit ) { StringBuffer sb = new StringBuffer ( ) ; switch ( rank ) { case ACE : sb . append ( ACEabbreviation ) ; break ; case JACK : sb . append ( JACKabbreviation ) ; break ; case QUEEN : sb . append ( QUEENabbreviation ) ; break ; case KING : sb . append ( KINGabbreviation ) ; break ; default : if ( rank < 2 ) throw new IllegalArgumentException ( "Illegal Rank for Card::toString()." ) ; if ( rank > 10 ) throw new IllegalArgumentException ( "Illegal Rank for Card::toString()." ) ; sb . append ( rank ) ; } switch ( suit ) { case CLUBS : sb . append ( CLUBSabbreviation ) ; break ; case DIAMONDS : sb . append ( DIAMONDSabbreviation ) ; break ; case HEARTS : sb . append ( HEARTSabbreviation ) ; break ; case SPADES : sb . append ( SPADESabbreviation ) ; break ; default : throw new IllegalArgumentException ( "Illegal Suit for Card::toString()." ) ; } return sb . toString ( ) ; }
target:  Static method for converting a specific rank/suit into its String representation. Creation date: (10/1/01 8:53:13 PM)