CalcolaNono

This commit is contained in:
La Programmatrice Verde 2025-11-04 22:33:27 +01:00
parent e91738667e
commit 0d62d39cd0

View File

@ -207,7 +207,8 @@ public class GestisciCodiceFiscale {
return ritorno;
}
static String quartoQuintoSestoCasoNome(char[] caratteriNome, char primaVocale, int posizionePrimaVocale, int primaConsonante) {
static String quartoQuintoSestoCasoNome(char[] caratteriNome, char primaVocale, int posizionePrimaVocale,
int primaConsonante) {
String ritorno;
int secondaVocale = trovaSecondaVocale(caratteriNome, posizionePrimaVocale);
@ -239,11 +240,26 @@ public class GestisciCodiceFiscale {
}
static String CalcolaNono(Date dataNascita) {
final String[][] TABELLA_CONVERSIONE_MESE = { { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" },
{ "a", "b", "c", "d", "e", "h", "l", "m", "p", "r", "s", "t" } };
final String PATTERN = "MM";
SimpleDateFormat sdf = new SimpleDateFormat(PATTERN);
int mese = Integer.parseInt(sdf.format(dataNascita));
boolean exit = false;
String ritorno = "";
for (int c = 0; c < TABELLA_CONVERSIONE_MESE[0].length && !exit; c++) {
if (mese == Integer.parseInt(TABELLA_CONVERSIONE_MESE[0][c])) {
ritorno = TABELLA_CONVERSIONE_MESE[1][c];
exit = true;
}
}
return ritorno;
}
static String CalcolaDecimoUndicesimo(Date dataNascita, String sesso) {
}
static String CalcolaFrom12To15(String luogoNascita) {