|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectText
public class Text
| Constructor Summary | |
|---|---|
Text()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.String aWord)
aggiunge in coda una parola all'elenco. |
boolean |
isEmpty()
verifica se l'elenco di parole e' vuoto. |
void |
makeEmpty()
rende vuoto il contenitore. |
java.lang.String |
removeLast()
restituisce l'ultima parola dell'elenco, rimuovendola |
int |
size()
restituisce il numero di elementi presenti nel contenitore |
void |
sort()
ordina per fusione l'elenco delle parole. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Text()
| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface Containerpublic void makeEmpty()
makeEmpty in interface Containerpublic int size()
size in interface Containerpublic void add(java.lang.String aWord)
aWord - la parola da aggiungere.public void sort()
public java.lang.String removeLast()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - se l'elenco e' vuoto
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||