Miglioria stampa

This commit is contained in:
La Programmatrice Verde
2026-01-15 22:14:47 +01:00
parent 3013655cb4
commit d14071be53

View File

@@ -59,7 +59,7 @@ public class Persona {
@Override
public String toString(){
return "\tNome: " + this.nome + "\n\tCognome: " + this.cognome + "\n\tCodice fiscale: " + this.codiceFiscale
return "\n\tNome: " + this.nome + "\n\tCognome: " + this.cognome + "\n\tCodice fiscale: " + this.codiceFiscale
+ "\n\tData di nascita: " + new SimpleDateFormat("dd/MM/yyyy").format(dataDiNascita);
}
}