Segui il video qui sotto per vedere come installare il nostro sito come web app sulla tua schermata principale.
Nota: Questa funzionalità potrebbe non essere disponibile in alcuni browser.
Pubblicità
import java.util.ArrayList;
import java.util.Date;
public class Main {
public static void main(String[] args) {
ArrayList <Esame> listaesami = new ArrayList();
Date datanasc = new Date("01-01-2007");
listaesami.add(new Esame("ASE", datanasc, 24); //Mi da errore ma non c'è scritto quale
}
}
import java.util.Date;
public class Esame {
private String materia;
private Date datasuperamento;
private int voto;
private Enum lode;
public Esame(String materia, Date datasuperamento, int voto) {
this.materia = materia;
this.datasuperamento = datasuperamento;
this.voto = voto;
}
//Getter & Setter non li ho copiati
}
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date d = sdf.parse("21/12/2012");
Così funziona se aggiungoSimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date d = sdf.parse("21/12/2012");