Stack e Queue completati, compreso il toString. Versione sia array che lista.

This commit is contained in:
2014-03-24 00:02:12 +01:00
parent e3059ed799
commit d34dd20a9d
8 changed files with 70 additions and 42 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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();
}