|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStackInt
public class StackInt
Constructor Summary | |
---|---|
StackInt()
Costruttore di default di StackInt, il default contiene al massimo 5 elementi. |
|
StackInt(int size)
Costruttore di StackInt, il parametro rappresenta il numero massimo di elementi contenibili. |
Method Summary | |
---|---|
boolean |
empty()
Metodo di controllo della condizione di stack vuoto, true se vuoto. |
int |
peek()
Lettura non distruttiva dell'elemento in cima allo stack. |
int |
pop()
Lettura distruttiva dell'elemento in cima allo stack. |
int |
push(int elem)
Inserimento dell'elemento passato in cima allo stack. |
int |
search(int elem)
Cerca un elemento nello stack. |
int |
size()
Fornisce il numero di elementi presenti nello stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackInt(int size)
public StackInt()
Method Detail |
---|
public boolean empty()
public int peek()
public int pop()
public int push(int elem)
public int search(int elem)
public int size()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |