// generate complaint "Your son George was late 4 times this month."
String complaint = null;
switch ( gender )
   {
   default:
   case MALE :
      // get: "Your son {studentGivenName} was late {tardies} times this month."
      // in translation.
      complaint = myResources.getString( "tardiness.male" );
      break;

   case FEMALE:
      // get: "Your daughter {studentGivenName} was late {tardies} times this month."
      // in translation.
      complaint = myResources.getString( "tardiness.female" );
   }

complaint = complaint.replace( "{studentGivenName}", studentFirstName );
complaint = complaint.replace( "{tardies}", timesLateThisMonth.toString() );