|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStudente
public class Studente
la classe gestisce le informazioni relative a uno studente quali nome, matricola, elenco degli esami sostenuti con relativa votazione
Constructor Summary | |
---|---|
Studente(java.lang.String unNome,
java.lang.String unaMatr)
inizializza uno studente, con lista vuota di esami sostenuta |
Method Summary | |
---|---|
void |
aggiungiEsame(Esame unEsame)
aggiunge un esame nella lista degli esami dello studente |
boolean |
isEmpty()
verifica se la lista di esami e' vuoto |
double |
media()
calcola la meda dei voti conseguiti negli esami. |
int |
numeroEsami()
restituisce il numero di esami sostenuti |
java.lang.String |
toString()
restituisce una stringa che contiene l'informazione relativa allo studente: esempio: matr.: 12345, nome: Bruno Biondo n. 2 esami sostenuti 1) Matematica A: 21 2) Fondamenti Informatica 1 : 23 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Studente(java.lang.String unNome, java.lang.String unaMatr)
Method Detail |
---|
public void aggiungiEsame(Esame unEsame)
unEsame
- l'esame da registrarepublic boolean isEmpty()
public double media()
public int numeroEsami()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |