|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectArchivioStudenti2
public class ArchivioStudenti2
| Constructor Summary | |
|---|---|
ArchivioStudenti2()
costruttore: inizializza un archivio vuoto. |
|
ArchivioStudenti2(java.util.Scanner reader)
costruttore: inizializza un archivio, acquisendo i dati da oggetto di classe Scanner |
|
| Method Summary | |
|---|---|
void |
aggiungi(Studente unoStudente)
aggiunge all'archivio uno studente |
boolean |
isEmpty()
verifica se l'archivio e' vuoto |
Studente |
rimuovi()
rimuove il primo elemento dell'archivio. |
java.lang.String |
toString()
restituisce una stringa che contiene i dati degli studenti memorizzati nell'archivio. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArchivioStudenti2()
public ArchivioStudenti2(java.util.Scanner reader)
reader - oggetto di classe Scanner| Method Detail |
|---|
public void aggiungi(Studente unoStudente)
unoStudente - lo studente da aggiungerepublic boolean isEmpty()
public Studente rimuovi()
java.util.NoSuchElementException - se l'archivio e' vuotopublic 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 | |||||||