Nome a singola vocale
This commit is contained in:
parent
e991731cb8
commit
5e59288649
@ -213,9 +213,15 @@ public class GestisciCodiceFiscale {
|
|||||||
int secondaVocale = trovaSecondaVocale(caratteriNome, posizionePrimaVocale);
|
int secondaVocale = trovaSecondaVocale(caratteriNome, posizionePrimaVocale);
|
||||||
|
|
||||||
if (secondaVocale == -1) { // non c'è la seconda vocale
|
if (secondaVocale == -1) { // non c'è la seconda vocale
|
||||||
ritorno = Character.toString(caratteriNome[primaConsonante])
|
if (primaConsonante == -1) { // se non c'è nessuna consonante
|
||||||
+ Character.toString(primaVocale)
|
ritorno = Character.toString(primaVocale)
|
||||||
+ Character.toString('x');
|
+ Character.toString('x')
|
||||||
|
+ Character.toString('x');
|
||||||
|
} else {
|
||||||
|
ritorno = Character.toString(caratteriNome[primaConsonante])
|
||||||
|
+ Character.toString(primaVocale)
|
||||||
|
+ Character.toString('x');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (primaConsonante == -1) {
|
if (primaConsonante == -1) {
|
||||||
ritorno = Character.toString(primaVocale)
|
ritorno = Character.toString(primaVocale)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user