|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectTesto
public class Testo
| Constructor Summary | |
|---|---|
Testo()
|
|
| Method Summary | |
|---|---|
int |
capitoli()
restituisce il numero di capitoli memorizzati. |
void |
inserisciTesto(java.lang.String testo)
memorizza internamente il testo passato come argomento. |
java.lang.String |
leggiCapitolo(int n)
Restituisce il testo corrispondente al capitolo n. |
static void |
main(java.lang.String[] args)
semplice metodo main() di prova |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Testo()
| Method Detail |
|---|
public int capitoli()
public void inserisciTesto(java.lang.String testo)
throws java.lang.IllegalArgumentException
testo - il testo
java.lang.IllegalArgumentExceptionpublic java.lang.String leggiCapitolo(int n)
n - il capitolo da restituire
public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||