Nome e cognome con una consonante
This commit is contained in:
parent
ffd8804994
commit
8369085295
@ -53,9 +53,15 @@ public class GestisciCodiceFiscale {
|
||||
int secondaVocale = trovaSecondaVocale(caratteriCognome, posizionePrimaVocale);
|
||||
|
||||
if (secondaVocale == -1) { // non c'è la seconda vocale
|
||||
ritorno = Character.toString(caratteriCognome[posizioniConsonanti[0]])
|
||||
+ Character.toString(primaVocale)
|
||||
+ Character.toString('x');
|
||||
if (primaVocale == 0) {
|
||||
ritorno = Character.toString(caratteriCognome[posizioniConsonanti[0]])
|
||||
+ Character.toString('x')
|
||||
+ Character.toString('x');
|
||||
} else {
|
||||
ritorno = Character.toString(caratteriCognome[posizioniConsonanti[0]])
|
||||
+ Character.toString(primaVocale)
|
||||
+ Character.toString('x');
|
||||
}
|
||||
} else {
|
||||
ritorno = Character.toString(caratteriCognome[posizioniConsonanti[0]])
|
||||
+ Character.toString(primaVocale)
|
||||
@ -226,9 +232,15 @@ public class GestisciCodiceFiscale {
|
||||
+ Character.toString('x')
|
||||
+ Character.toString('x');
|
||||
} else {
|
||||
ritorno = Character.toString(caratteriNome[primaConsonante])
|
||||
+ Character.toString(primaVocale)
|
||||
+ Character.toString('x');
|
||||
if (primaVocale == 0) {
|
||||
ritorno = Character.toString(caratteriNome[primaConsonante])
|
||||
+ Character.toString('x')
|
||||
+ Character.toString('x');
|
||||
} else {
|
||||
ritorno = Character.toString(caratteriNome[primaConsonante])
|
||||
+ Character.toString(primaVocale)
|
||||
+ Character.toString('x');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (primaConsonante == -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user