class DiccionarioNumeros {//definicion de constantes
final static String CERO = "cero";final static String UNO = "uno";
final static String DOS = "dos";final static String TRES = "tres";
final static String CUATRO="cuatro";final static String CINCO="cinco";
final static String SEIS = "seis";final static String SIETE = "siete";
final static String OCHO = "ocho";final static String NUEVE = "nueve";
 String traducir(int numero) {
   String retorno = "";
   if ( numero >=0 && numero <=9) {
    switch ( numero ) {
      case 0:  retorno = CERO; break;
      case 1:  retorno = UNO; break;
      case 2:  retorno = DOS; break;
      case 3:  retorno = TRES; break;
      case 4:  retorno = CUATRO; break;
      case 5:  retorno = CINCO; break;
      case 6:  retorno = SEIS; break;
      case 7:  retorno = SIETE; break;
      case 8:  retorno = OCHO; break;
      case 9:  retorno = NUEVE; break;
      default : retorno="desconocido";
    }//switch
   }//if
   return retorno;
 }//traducir
}//DiccionarioNumeros