Stack e Queue completati, compreso il toString. Versione sia array che lista.
This commit is contained in:
@@ -64,11 +64,6 @@ public class ArrayStack<E> implements Stack<E> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
// not used
|
||||
public boolean isFull() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
|
||||
@@ -48,11 +48,7 @@ public class NodeStack<E> implements Stack<E> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
// not used
|
||||
public boolean isFull() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
|
||||
@@ -15,7 +15,6 @@ public interface Stack<E> {
|
||||
public E top () throws EmptyStackException;
|
||||
public E pop () throws EmptyStackException;
|
||||
public boolean isEmpty();
|
||||
public boolean isFull();
|
||||
public int size();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user