Crazione Stack

This commit is contained in:
2014-03-05 01:13:42 +01:00
commit 84aa1374c7
8 changed files with 318 additions and 0 deletions

21
stack/StackRules.java Normal file
View File

@@ -0,0 +1,21 @@
package stack;
import exceptions.EmpyStackException;
import exceptions.FullStackException;
/**
* Created with MONSTER.
* User: xgiovio
* Date: 05/03/14
* Time: 0.06
*/
public abstract class StackRules <E> {
public abstract void push (E element) throws FullStackException;
public abstract E top () throws EmpyStackException;
public abstract E pop () throws EmpyStackException;
public abstract boolean isEmpty();
public abstract boolean isFull();
public abstract int size();
}