public class PersonaStatic
{
int id;
static int CURRENT_ID = 1;
String nome;
String cognome;
public PersonaStatic(String nome, String cognome)
{
this.nome = nome;
this.cognome = cognome;
this.id = this.CURRENT_ID;
this.CURRENT_ID++; //this.currentId = this.currentId+1;
}
}