|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectArchivio
| Constructor Summary | |
Archivio()
inizializza un archivio vuoto |
|
Archivio(java.lang.String filename)
inizializza un archivio, inserendo dati acquisiti da file |
|
| Method Summary | |
void |
aggiungi(java.lang.String nome,
int matr)
Aggiunge un oggetto ridimensionando l'array se richiesto. |
Studente |
togli()
ritorna il valore massimo del contenitore (massimo nel senso di compareTo()), cancellandolo dal contenitore. |
boolean |
vuoto()
verifica se il contenitore è vuoto. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Archivio()
public Archivio(java.lang.String filename)
throws java.io.IOException,
java.io.FileNotFoundException
filename - nome del file da cui vengono acquisiti i dati
java.io.IOException
java.io.FileNotFoundException| Method Detail |
public boolean vuoto()
public void aggiungi(java.lang.String nome,
int matr)
nome - nome dello studente da aggiungerematr - numero di matricola dello studente da aggiungere
public Studente togli()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - se l'array e' vuoto
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||