Refactor di tutto lo stack. Manca l'esercizio sulle operazioni matematiche via stack. Sulla coda bisogna implementare da zero FixedArrayQueue e poi la relativa versione senza fullexception in ArrayQueue. Esercizi!
This commit is contained in:
@@ -6,9 +6,9 @@ package exceptions;
|
||||
* Date: 05/03/14
|
||||
* Time: 0.09
|
||||
*/
|
||||
public class EmpyQueueException extends RuntimeException {
|
||||
public class EmptyQueueException extends RuntimeException {
|
||||
|
||||
public EmpyQueueException(){
|
||||
public EmptyQueueException(){
|
||||
super("Queue Empty");
|
||||
}
|
||||
}
|
||||
@@ -6,9 +6,9 @@ package exceptions;
|
||||
* Date: 05/03/14
|
||||
* Time: 0.09
|
||||
*/
|
||||
public class EmpyStackException extends RuntimeException {
|
||||
public class EmptyStackException extends RuntimeException {
|
||||
|
||||
public EmpyStackException (){
|
||||
public EmptyStackException(){
|
||||
super("Stack Empty");
|
||||
}
|
||||
}
|
||||
14
exceptions/FullQueueException.java
Normal file
14
exceptions/FullQueueException.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package exceptions;
|
||||
|
||||
/**
|
||||
* Created with MONSTER.
|
||||
* User: xgiovio
|
||||
* Date: 05/03/14
|
||||
* Time: 0.09
|
||||
*/
|
||||
public class FullQueueException extends RuntimeException {
|
||||
|
||||
public FullQueueException(){
|
||||
super("Queue Full");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user