Initial commit

This commit is contained in:
Chris Cromer
2016-06-20 13:25:01 -04:00
commit a41abff9b0
66 changed files with 4205 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
public int peek() {
// Devolver el valor encima
return this.pila[encima];
}

View File

@@ -0,0 +1,6 @@
public void pop() {
// Borrar el valor que está encima.
this.pila[encima] = 0;
// Restar el nivel de la pila.
encima--;
}

View File

@@ -0,0 +1,6 @@
public void push(int valor) {
// Sumar el nivel de la pila
encima++;
// Insertar el valor
this.pila[encima] = valor;
}