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