Crazione Stack
This commit is contained in:
21
stack/StackRules.java
Normal file
21
stack/StackRules.java
Normal 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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user