Miglioria ritorno
This commit is contained in:
parent
d25c734a18
commit
1e519068b2
@ -33,10 +33,9 @@ public class Anagrafica {
|
||||
@Override
|
||||
public String toString() {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(MainComune.PATTERN_DATA);
|
||||
String ritorno = "Nome: " + this.getNome() + "\nCognome: " + this.getCognome() + "\nData di nascita: "
|
||||
return "Nome: " + this.getNome() + "\nCognome: " + this.getCognome() + "\nData di nascita: "
|
||||
+ sdf.format(this.getDataNascita()) + "\nLuogo di nascita: " + this.getLuogoNascita() + "\nSesso: " + this.getSesso()
|
||||
+ "\nCodice fiscale: " + this.getCF();
|
||||
return ritorno;
|
||||
}
|
||||
|
||||
public String getNome() {
|
||||
|
||||
@ -20,7 +20,7 @@ public class GestisciCodiceFiscale {
|
||||
|
||||
public static String CalcolaCodiceFiscale(String nome, String cognome, Date dataNascita, String luogo,
|
||||
String sesso) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
static String CalcolaPrimaTerna(String cognome) {
|
||||
@ -234,9 +234,7 @@ public class GestisciCodiceFiscale {
|
||||
final String PATTERN = "yyyy";
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(PATTERN);
|
||||
char[] data = sdf.format(dataNascita).toCharArray();
|
||||
String ritorno = Character.toString(data[2]) + Character.toString(data[3]);
|
||||
|
||||
return ritorno;
|
||||
return Character.toString(data[2]) + Character.toString(data[3]);
|
||||
}
|
||||
|
||||
static String CalcolaNono(Date dataNascita) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user